summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js')
-rw-r--r--js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js b/js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js
new file mode 100644
index 0000000000..6abe09e94e
--- /dev/null
+++ b/js/src/tests/test262/language/module-code/top-level-await/new-await-script-code.js
@@ -0,0 +1,15 @@
+// Copyright (C) 2020 Rick Waldron. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: prod-AwaitExpression
+description: >
+ await is not a keyword in script code
+features: [top-level-await]
+---*/
+
+class await {}
+
+assert.sameValue(new await instanceof await, true);
+
+reportCompare(0, 0);