mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 01:08:21 +00:00
Updated to remove NotAFunction exception handler which is not generated any more and was deprecated.
This commit is contained in:
parent
0b9f8244c1
commit
f813a31aa8
@ -79,7 +79,7 @@ public class DynamicScopes {
|
||||
// Initialize the standard objects (Object, Function, etc.)
|
||||
// This must be done before scripts can be executed. The call
|
||||
// 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
|
||||
// use dynamic scope if the Context is so initialized.
|
||||
@ -156,9 +156,6 @@ public class DynamicScopes {
|
||||
threadScope.put("x", threadScope, x);
|
||||
cx.evaluateString(threadScope, script, "threadScript", 1, null);
|
||||
}
|
||||
catch (NotAFunctionException jse) {
|
||||
// ignore
|
||||
}
|
||||
catch (JavaScriptException jse) {
|
||||
// ignore
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user