Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: test/mjsunit/wasm/wasm-object-api.js

Issue 2447013004: [wasm] Remove the "Wasm" object. (Closed)
Patch Set: fix regression test Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/wasm/test-wasm-module-builder.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2fa57b033bf73cd83e2a65223570ea6e37e94840..3888e3638ba61c5ef939b4ebdbc21b4dbeb81257 100644
--- a/test/mjsunit/wasm/wasm-object-api.js
+++ b/test/mjsunit/wasm/wasm-object-api.js
@@ -4,20 +4,10 @@
// Flags: --expose-wasm
-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);
-}
+// Old API should be gone.
+assertEquals("undefined", typeof Wasm);
+// New API should rule.
assertEquals('object', typeof WebAssembly);
assertEquals('function', typeof WebAssembly.Module);
assertEquals('function', typeof WebAssembly.Instance);
« no previous file with comments | « test/mjsunit/wasm/test-wasm-module-builder.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698