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

Unified Diff: test/mjsunit/regress/wasm/regression-666741.js

Issue 2514983002: [wasm] Throw a RangeError if Wasm memory could not be allocated. (Closed)
Patch Set: Fixing nits Created 4 years, 1 month 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/wasm/regression-666741.js
diff --git a/test/mjsunit/es6/regress/regress-594084.js b/test/mjsunit/regress/wasm/regression-666741.js
similarity index 51%
copy from test/mjsunit/es6/regress/regress-594084.js
copy to test/mjsunit/regress/wasm/regression-666741.js
index 2a427eb3d3dc3c8bd53ace1d053a1ffbed54e686..9531fc8fd2f6d86b6205609bd7ae6d66717c9bde 100644
--- a/test/mjsunit/es6/regress/regress-594084.js
+++ b/test/mjsunit/regress/wasm/regression-666741.js
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
-(function() {
- function CRASH(defaultParameter =
- (function() { function functionDeclaration() { return 0; } }())) {
- }
+// Flags: --random-seed=-1101427159 --enable-slow-asserts --expose-wasm
+
+(function __f_7() {
+ assertThrows(() => new WebAssembly.Memory({initial: 59199}), RangeError);
})();
« 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