[jsfunfuzz] Computed exception offset wrong when first instruction is attempt to...
[WebKit-https.git] / LayoutTests / fast / js / resources / exception-linenums.js
index 9b9870c..f36f45a 100644 (file)
@@ -57,4 +57,17 @@ try {
 shouldBe("typeof e.sourceURL", '"string"');
 shouldBe("e.line", '5');
 
+realEval = eval;
+delete eval;
+(function(){
+    try {
+        eval("");
+    } catch(exception) {
+        e = exception;
+    }
+})();
+eval = realEval;
+shouldBe("typeof e.sourceURL", '"string"');
+shouldBe("e.line", '64');
+
 var successfullyParsed = true;