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

Unified Diff: test/mjsunit/regress/regress-605488.js

Issue 1940243002: [wasm] Fix bug with empty input to Wasm.instantiateModuleFromAsm() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « src/wasm/wasm-js.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-605488.js
diff --git a/test/mjsunit/call-intrinsic-type-error.js b/test/mjsunit/regress/regress-605488.js
similarity index 63%
copy from test/mjsunit/call-intrinsic-type-error.js
copy to test/mjsunit/regress/regress-605488.js
index 9d586977d924829f664a34c915440b5c8498dd63..03e6a38e28b35bb6a23c2d3aa49a46142ee51d7f 100644
--- a/test/mjsunit/call-intrinsic-type-error.js
+++ b/test/mjsunit/regress/regress-605488.js
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax
+// Flags: --expose-wasm
try {
- %Call(1, 0);
+ Wasm.instantiateModuleFromAsm("");
+ assertTrue(false);
} catch (e) {
- assertTrue(e instanceof TypeError);
+ print("Caught: " + e);
}
« no previous file with comments | « src/wasm/wasm-js.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698