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

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

Issue 2566683002: [wasm][asm.js] Check that property keys are literals for imports. (Closed)
Patch Set: merge 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/asm/asm-validation.js
diff --git a/test/mjsunit/asm/asm-validation.js b/test/mjsunit/asm/asm-validation.js
index cc0bd8244af96439016a0df34dbd1cb44346cd03..0c9e841fe94ad4b95ac0579b482cf5ed9b41ccb5 100644
--- a/test/mjsunit/asm/asm-validation.js
+++ b/test/mjsunit/asm/asm-validation.js
@@ -316,6 +316,17 @@ function assertValidAsm(func) {
assertEquals(3, m.foo(3));
})();
+(function TestBadImport() {
+ function Module(stdlib) {
+ "use asm";
+ var set = 0;
+ var foo = stdlib[set];
+ return {};
+ }
+ var m = Module(this);
+ assertFalse(%IsAsmWasmCode(Module));
+})();
+
(function TestBadishBooleanExprAnnotation() {
function Module() {
"use asm";
« 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