зеркало из https://github.com/mozilla/gecko-dev.git
Updated to remove NotAFunction exception handler which is not generated any more and was deprecated.
This commit is contained in:
Родитель
0b9f8244c1
Коммит
f813a31aa8
|
@ -79,7 +79,7 @@ public class DynamicScopes {
|
||||||
// Initialize the standard objects (Object, Function, etc.)
|
// Initialize the standard objects (Object, Function, etc.)
|
||||||
// This must be done before scripts can be executed. The call
|
// This must be done before scripts can be executed. The call
|
||||||
// returns a new scope that we will share.
|
// returns a new scope that we will share.
|
||||||
Scriptable scope = cx.initStandardObjects();
|
GlobalScope scope = cx.initStandardObjects(true);
|
||||||
|
|
||||||
// Now we can evaluate a script and functions will be compiled to
|
// Now we can evaluate a script and functions will be compiled to
|
||||||
// use dynamic scope if the Context is so initialized.
|
// use dynamic scope if the Context is so initialized.
|
||||||
|
@ -156,9 +156,6 @@ public class DynamicScopes {
|
||||||
threadScope.put("x", threadScope, x);
|
threadScope.put("x", threadScope, x);
|
||||||
cx.evaluateString(threadScope, script, "threadScript", 1, null);
|
cx.evaluateString(threadScope, script, "threadScript", 1, null);
|
||||||
}
|
}
|
||||||
catch (NotAFunctionException jse) {
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
catch (JavaScriptException jse) {
|
catch (JavaScriptException jse) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче