mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
1c4a403de2
functions declared inside with statements to ensure that their thisObj is not with or call scope as required by ECMA-262. But due the changes to support E4X extensions such situation can only happen when function is accessed as expression like in var f = function() { } ... f() and typically it is exactly nested the functions that are accessed in this way. So the patch adds optimized code that always check for proper thisObj to ScriptRuntime.getValueFunctionAndThis and removes getThis and corresponding parsing/code generation code. In this way when nested functions are accessed as name or property no checks are done for them and Rhino code slightly shrinks. |
||
---|---|---|
.. | ||
benchmarks | ||
docs | ||
jsd | ||
jsdj | ||
jsj | ||
narcissus | ||
perf | ||
ref | ||
rhino | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |