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

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

Issue 1943373002: [wasm] Disallow runtime calls in asm.js modules. (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/typing-asm.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-592352.js
diff --git a/test/mjsunit/regress/regress-605488.js b/test/mjsunit/regress/regress-592352.js
similarity index 51%
copy from test/mjsunit/regress/regress-605488.js
copy to test/mjsunit/regress/regress-592352.js
index 03e6a38e28b35bb6a23c2d3aa49a46142ee51d7f..f3477c038dde3611b8aadc5dc79e4795296a76dc 100644
--- a/test/mjsunit/regress/regress-605488.js
+++ b/test/mjsunit/regress/regress-592352.js
@@ -2,10 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --expose-wasm
+// Flags: --expose-wasm --allow-natives-syntax
+
+function __f_76() {
+ "use asm";
+ function __f_72() {
+ %OptimizeFunctionOnNextCall();
+ }
+ return {__f_72:__f_72};
+}
try {
- Wasm.instantiateModuleFromAsm("");
+ Wasm.instantiateModuleFromAsm( __f_76.toString());
assertTrue(false);
} catch (e) {
print("Caught: " + e);
« no previous file with comments | « src/typing-asm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698