4. #1 Execution Context
10.1.2 Types of Executable code
β’
Global code is source text that is treated as an ECMAScript Program. β¦(μ
β’
Eval code is the source text supplied to the built-in eval function. More
β’
λ΅)
precisely, if the parameter to the built-in eval function is a string, it is treated
as an ECMAScript Program. β¦(μλ΅)
Function code is source text that is parsed as part of a FunctionBody. The
function code of a particular FunctionBody does not include any source text
that is parsed as part of a nested FunctionBody. β¦(μλ΅)
ECMA-262-3
μ μ μ½λ(Global code), Eval μ½λ(Eval Code), ν¨μ μ½λ(Function Code)κ°
μλ€.