mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
f260baaf11
Now Context defines new method "call" that provide optimized version of the following code: Context cx = Context.enter() try { callable.call(cx, scope, thisObj, args); } finally { Context.exit(); } Since Function extends Callable, it can be passed to this method directly thus simplifying ScriptableObject.call method and Java adapter code. The new interface is used in SecurityController implementation which allows to pass interpreted functions there directly as well removing the need to have intermediate class in Interpreter. |
||
---|---|---|
.. | ||
org/mozilla/javascript/tools | ||
build.xml |