diff options
Diffstat (limited to 'js/src/tests/non262/AsyncGenerators/async-generator-declaration-in-modules.js')
-rw-r--r-- | js/src/tests/non262/AsyncGenerators/async-generator-declaration-in-modules.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/tests/non262/AsyncGenerators/async-generator-declaration-in-modules.js b/js/src/tests/non262/AsyncGenerators/async-generator-declaration-in-modules.js new file mode 100644 index 0000000000..40509d990d --- /dev/null +++ b/js/src/tests/non262/AsyncGenerators/async-generator-declaration-in-modules.js @@ -0,0 +1,11 @@ +async function* f() { + return "success"; +} + +var AsyncGenerator = (async function*(){}).constructor; + +assertEq(f instanceof AsyncGenerator, true); + +f().next().then(v => { + reportCompare("success", v.value); +}); |