Index: test/mjsunit/wasm/wasm-object-api.js |
diff --git a/test/mjsunit/wasm/wasm-object-api.js b/test/mjsunit/wasm/wasm-object-api.js |
index b8663b3b29b043690e3b885d4ca307e7b16be71c..2fa57b033bf73cd83e2a65223570ea6e37e94840 100644 |
--- a/test/mjsunit/wasm/wasm-object-api.js |
+++ b/test/mjsunit/wasm/wasm-object-api.js |
@@ -4,12 +4,19 @@ |
// Flags: --expose-wasm |
-assertFalse(undefined === Wasm); |
-assertFalse(undefined == Wasm); |
-assertEquals("function", typeof Wasm.verifyModule); |
-assertEquals("function", typeof Wasm.verifyFunction); |
-assertEquals("function", typeof Wasm.instantiateModule); |
-assertFalse(undefined == Wasm.experimentalVersion); |
+var oldApi = true; |
+ |
+if (oldApi) { |
+ assertFalse(undefined === Wasm); |
+ assertFalse(undefined == Wasm); |
+ assertEquals("function", typeof Wasm.verifyModule); |
+ assertEquals("function", typeof Wasm.verifyFunction); |
+ assertEquals("function", typeof Wasm.instantiateModule); |
+ assertFalse(undefined == Wasm.experimentalVersion); |
+} else { |
+ assertTrue(undefined === Wasm); |
+ assertTrue(undefined == Wasm); |
+} |
assertEquals('object', typeof WebAssembly); |
assertEquals('function', typeof WebAssembly.Module); |