Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/asm-wasm.js')
-rw-r--r--deps/v8/test/mjsunit/wasm/asm-wasm.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/wasm/asm-wasm.js b/deps/v8/test/mjsunit/wasm/asm-wasm.js
index 97219f113ba..10db2c2be80 100644
--- a/deps/v8/test/mjsunit/wasm/asm-wasm.js
+++ b/deps/v8/test/mjsunit/wasm/asm-wasm.js
@@ -1397,3 +1397,27 @@ assertWasm(3.25, TestFloatGlobals);
assertEquals(42, m.bar());
assertEquals(42, m.baz());
})();
+
+(function TestGenerator() {
+ function* asmModule() {
+ "use asm";
+ function foo() {
+ return 42;
+ }
+ return {foo: foo};
+ }
+ asmModule();
+ assertFalse(%IsAsmWasmCode(asmModule));
+})();
+
+(function TestAsyncFunction() {
+ async function asmModule() {
+ "use asm";
+ function foo() {
+ return 42;
+ }
+ return {foo: foo};
+ }
+ asmModule();
+ assertFalse(%IsAsmWasmCode(asmModule));
+})();