Example #1
0
 private object ImplEval(Context cx, IScriptable scope, IScriptable thisObj, object [] args)
 {
     if (cx.Version == Context.Versions.JS1_4)
     {
         Context.ReportWarningById("msg.cant.call.indirect", "eval");
         return(ScriptRuntime.evalSpecial(cx, scope, thisObj, args, string.Empty, 0));
     }
     throw ScriptRuntime.ConstructError("EvalError", ScriptRuntime.GetMessage("msg.cant.call.indirect", "eval"));
 }