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

Unified Diff: test/mjsunit/asm/regress-660813.js

Issue 2481103002: [wasm] [asm.js] Don't allow bad return types from a global constant (Closed)
Patch Set: 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 | « test/mjsunit/asm/asm-validation.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/asm/regress-660813.js
diff --git a/test/mjsunit/regress/regress-crbug-648740.js b/test/mjsunit/asm/regress-660813.js
similarity index 69%
copy from test/mjsunit/regress/regress-crbug-648740.js
copy to test/mjsunit/asm/regress-660813.js
index e52d899852433bbe95bcc3c1de54a56b5c738d7f..e9bf5797c7f434201cf67f4862f692ca3e7a0d9b 100644
--- a/test/mjsunit/regress/regress-crbug-648740.js
+++ b/test/mjsunit/asm/regress-660813.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: --min-preparse-length=0
-
-(function () {
+function Module() {
+ "use asm";
+ const i = 0xffffffff;
function foo() {
- const arguments = 42;
+ return i;
}
-})()
+}
+Module();
« no previous file with comments | « test/mjsunit/asm/asm-validation.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698