10.3.1 Identifier Resolution

2010-05-08

Reference ResolveIdentifier(Identifier:String)

This means retrieving the Reference for an Identifier using the LexicalEnvironment of the current execution context. The result is always of the internal type Reference.

Code: (Meta Ecma)
function ResolveIdentifier(Identifier){
var env = global.executionContextStack[global.executionContextStack.length-1]; // get the current execution context
var strict = env.strict; // is the current code running in strict mode?
return GetIdentifierReference(env, Identifier, strict);
}