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"; |