Updated to remove NotAFunction exception handler which is not generated any more and was deprecated.

This commit is contained in:
igor%mir2.org 2003-10-23 21:48:45 +00:00
Родитель 0b9f8244c1
Коммит f813a31aa8
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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
}