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