diff options
Diffstat (limited to 'js/src/tests/non262/module/await-restricted-nested.js')
-rw-r--r-- | js/src/tests/non262/module/await-restricted-nested.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/src/tests/non262/module/await-restricted-nested.js b/js/src/tests/non262/module/await-restricted-nested.js new file mode 100644 index 0000000000..277b3a3489 --- /dev/null +++ b/js/src/tests/non262/module/await-restricted-nested.js @@ -0,0 +1,6 @@ +// |reftest| error:SyntaxError module + +// 'await' is always a keyword when parsing modules. +function f() { + await; +} |