Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index e9f1ae46c258470d28ed71b319239efe652f9f72..cdf95b1f2736d19ad0339d6de13953d19a8171cf 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -939,14 +939,10 @@ function CallSiteToString() { |
if (this.isNative()) { |
fileLocation = "native"; |
} else { |
- if (this.isEval()) { |
- fileName = this.getScriptNameOrSourceURL(); |
- if (!fileName) { |
- fileLocation = this.getEvalOrigin(); |
- fileLocation += ", "; // Expecting source position to follow. |
- } |
- } else { |
- fileName = this.getFileName(); |
+ fileName = this.getScriptNameOrSourceURL(); |
+ if (!fileName && this.isEval()) { |
+ fileLocation = this.getEvalOrigin(); |
+ fileLocation += ", "; // Expecting source position to follow. |
} |
if (fileName) { |