From e7ede5bb73a43bd98911196d90fe7f52c7e80f88 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 git-svn-id: svn://10.0.0.236/trunk@145539 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/js/rhino/src/org/mozilla/javascript/Interpreter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mozilla/js/rhino/src/org/mozilla/javascript/Interpreter.java b/mozilla/js/rhino/src/org/mozilla/javascript/Interpreter.java index 23ea2e40b0b..a27ee82a105 100644 --- a/mozilla/js/rhino/src/org/mozilla/javascript/Interpreter.java +++ b/mozilla/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