Index: test/mjsunit/wasm/asm-wasm-copy.js |
diff --git a/test/mjsunit/wasm/asm-wasm-copy.js b/test/mjsunit/wasm/asm-wasm-copy.js |
index 35c5f76ef10e6c37cedd9be2f16b8ba70341c1fd..149196e1b9b6afe9fb5b20e4c6bc2841c72e0ea3 100644 |
--- a/test/mjsunit/wasm/asm-wasm-copy.js |
+++ b/test/mjsunit/wasm/asm-wasm-copy.js |
@@ -22,6 +22,7 @@ |
} |
return { func: func }; |
} |
- var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString()); |
- assertEquals(asmModule().func(), wasm.func()); |
+ var wasm = asmModule(); |
+ var js = eval('(' + asmModule.toString().replace('use asm', '') + ')')(); |
+ assertEquals(js.func(), wasm.func()); |
})(); |