Index: test/mjsunit/asm/asm-validation.js |
diff --git a/test/mjsunit/asm/asm-validation.js b/test/mjsunit/asm/asm-validation.js |
index 9e5fb9c5196edd19d592a103d0cc7347b7591a0b..3dfd18caef29218516275517e793b70abad7ca0e 100644 |
--- a/test/mjsunit/asm/asm-validation.js |
+++ b/test/mjsunit/asm/asm-validation.js |
@@ -401,3 +401,15 @@ function assertValidAsm(func) { |
Module(); |
assertFalse(%IsAsmWasmCode(Module)); |
})(); |
+ |
+(function TestUndefinedGlobalCall() { |
+ function Module() { |
+ "use asm"; |
+ function foo() { |
+ return bar() | 0; |
+ } |
+ return foo; |
+ } |
+ Module(); |
+ assertFalse(%IsAsmWasmCode(Module)); |
+})(); |