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

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 2552913004: [wasm][asm.js] Require exported asm.js functions have be names. (Closed)
Patch Set: fix Created 4 years 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/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm.js
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js
index e7124f86744f6a71dc837bb82be91aea2320aa45..3d302c5f7a043acc9eaccfa267e71f0eed08d945 100644
--- a/test/mjsunit/wasm/asm-wasm.js
+++ b/test/mjsunit/wasm/asm-wasm.js
@@ -1484,6 +1484,19 @@ assertWasm(-34359738370.75, TestNegativeDouble);
})();
+(function TestBadExportKey() {
+ function Module() {
+ "use asm";
+ function func() {
+ }
+ return {123: func};
+ }
+
+ Module(stdlib);
+ assertTrue(%IsNotAsmWasmCode(Module));
+})();
+
+
function TestAndIntAndHeapValue(stdlib, foreign, buffer) {
"use asm";
var HEAP32 = new stdlib.Int32Array(buffer);
« no previous file with comments | « src/asmjs/asm-typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698