diff options
Diffstat (limited to 'deps/v8/test/mjsunit/wasm/asm-wasm.js')
-rw-r--r-- | deps/v8/test/mjsunit/wasm/asm-wasm.js | 24 |
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)); +})(); |