eval() called indirectly should throw an EvalError

This commit is contained in:
norris%netscape.com 1999-12-03 23:44:58 +00:00
parent 6be284e2ae
commit f1b3d47cb2
2 changed files with 6 additions and 6 deletions

View File

@ -382,9 +382,9 @@ public class NativeGlobal {
Object[] args, Function funObj)
throws JavaScriptException
{
Object[] msgArgs = { "eval" };
throw Context.reportRuntimeError(
Context.getMessage("msg.cant.call.indirect", msgArgs));
Object[] a = { "eval" };
String m = ScriptRuntime.getMessage("msg.cant.call.indirect", a);
throw NativeGlobal.constructError(cx, "EvalError", m, funObj);
}
/**

View File

@ -382,9 +382,9 @@ public class NativeGlobal {
Object[] args, Function funObj)
throws JavaScriptException
{
Object[] msgArgs = { "eval" };
throw Context.reportRuntimeError(
Context.getMessage("msg.cant.call.indirect", msgArgs));
Object[] a = { "eval" };
String m = ScriptRuntime.getMessage("msg.cant.call.indirect", a);
throw NativeGlobal.constructError(cx, "EvalError", m, funObj);
}
/**