diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java
index <HASH>..<HASH> 100644
--- a/src/org/mozilla/javascript/Interpreter.java
+++ b/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
Initialize cx.interpreterSourceFile with script o r function source name before starting bytecode execution so this information for the first script throw/runtime exception