From fb9ac64c2e7fd3c3a9100f9fdc8324dab5b855ce Mon Sep 17 00:00:00 2001 From: "igor%mir2.org" Date: Mon, 4 Aug 2003 13:01:06 +0000 Subject: [PATCH] Initialize cx.interpreterSourceFile with script o r function source name before starting bytecode execution so this information for the first script throw/runtime exception --- js/rhino/src/org/mozilla/javascript/Interpreter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/rhino/src/org/mozilla/javascript/Interpreter.java b/js/rhino/src/org/mozilla/javascript/Interpreter.java index 23ea2e40b0bc..a27ee82a1054 100644 --- a/js/rhino/src/org/mozilla/javascript/Interpreter.java +++ b/js/rhino/src/org/mozilla/javascript/Interpreter.java @@ -1703,6 +1703,8 @@ public class Interpreter { debuggerFrame.onEnter(cx, scope, thisObj, args); } + cx.interpreterSourceFile = idata.itsSourceFile; + Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return