summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1669616.js
blob: 7c48b229a51cbcbea0903d8b54f1a1d18e2d5ce7 (plain)
1
2
3
4
5
6
7
8
9
enableLastWarning();
eval(`
  function blah() {
    return 0;
    if (true) {} /* no newline here */ 400n == "abc";
  }
`);
assertEq(getLastWarning().message, "unreachable code after return statement");
blah();