4 ms·
This is correct, for details this is specified as point 15.1.2.1 in ES spec: > (...) any invocation of eval that is not a direct call uses the global environme
by wiktor-k 7y ago
This is correct, for details this is specified as point 15.1.2.1 in ES spec:
> (...) any invocation of eval that is not a direct call uses the global environment as its variable environment rather than the caller’s variable environment.
Source: https://ecma-international.org/ecma-262/5.1/ https://ecma-international.org/ecma-262/5.1/
- chii 7y agoahh, so this only applies to the 'eval' function, and not just any functions it seems.