Bug 1503009 - Test that import() is a syntax error even if we don't emit bytecode for it. r=jorendorff, a=test-only
authorJon Coppeard <jcoppeard@mozilla.com>
Wed, 31 Oct 2018 09:04:00 -0400
changeset 501027 cc49be946af968c2091c0d777a0c8b167d72854a
parent 501026 06848028132d16f002e1a3b79bf3de157c5f4016
child 501028 560ec5d63826c4a8b510fa08a4510564f575ee2b
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff, test-only
bugs1503009
milestone64.0
Bug 1503009 - Test that import() is a syntax error even if we don't emit bytecode for it. r=jorendorff, a=test-only
js/src/jit-test/tests/modules/bug-1503009.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/modules/bug-1503009.js
@@ -0,0 +1,2 @@
+// |jit-test| error: SyntaxError
+new Function("if (0) import('')")();