function reportAccessingEvalViaGlobalObject(globalScope){for(var i=0;i<candidatesOfGlobalObject.length;++i){var name=candidatesOfGlobalObject[i];var variable=astUtils.getVariableByName(globalScope,name);if(!variable){continue;}var references=variable.references;for(var j=0;j<references.length;++j){var identifier=references[j].identifier;var node=identifier.parent;// To detect code like `window.window.eval`.
while(isMember(node,name)){node=node.parent;}// Reports.
if(isMember(node,"eval")){report(node);}}}}
Reports accesses of `eval` via the global object.

@param {escope.Scope} globalScope - The global scope.
@returns {void}