summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1669616.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1669616.js')
-rw-r--r--js/src/jit-test/tests/basic/bug1669616.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1669616.js b/js/src/jit-test/tests/basic/bug1669616.js
new file mode 100644
index 0000000000..7c48b229a5
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug1669616.js
@@ -0,0 +1,9 @@
+enableLastWarning();
+eval(`
+ function blah() {
+ return 0;
+ if (true) {} /* no newline here */ 400n == "abc";
+ }
+`);
+assertEq(getLastWarning().message, "unreachable code after return statement");
+blah();