diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-10 18:41:38 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:41 -0400 |
commit | d1c146adf23e317facd03cd5c097f12a69947392 (patch) | |
tree | 4948233db3f24e1e76036c0e77e48681645f3353 /js/src/jit-test/modules | |
parent | 147c6d6afa453ca24134353cbf64f2e210776eb4 (diff) | |
download | UXP-d1c146adf23e317facd03cd5c097f12a69947392.tar UXP-d1c146adf23e317facd03cd5c097f12a69947392.tar.gz UXP-d1c146adf23e317facd03cd5c097f12a69947392.tar.lz UXP-d1c146adf23e317facd03cd5c097f12a69947392.tar.xz UXP-d1c146adf23e317facd03cd5c097f12a69947392.zip |
1340148 - Disallow function redeclarations at module top level.
Diffstat (limited to 'js/src/jit-test/modules')
-rw-r--r-- | js/src/jit-test/modules/export-default-async-asi.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/jit-test/modules/export-default-async-asi.js b/js/src/jit-test/modules/export-default-async-asi.js new file mode 100644 index 000000000..a69a7aa3d --- /dev/null +++ b/js/src/jit-test/modules/export-default-async-asi.js @@ -0,0 +1,2 @@ +export default async // ASI occurs here due to the [no LineTerminator here] restriction on default-exporting an async function +function async() { return 17; } |