diff --git a/js/src/jit-test/tests/auto-regress/bug743094.js b/js/src/jit-test/tests/auto-regress/bug743094.js index f3e853dba67..00c2fa39ad8 100644 --- a/js/src/jit-test/tests/auto-regress/bug743094.js +++ b/js/src/jit-test/tests/auto-regress/bug743094.js @@ -4,8 +4,14 @@ // Flags: --ion-eager // -gczeal(2) +var i = 0; + +gczeal(2); function test() { - typeof (new test("1")) != 'function' + if (i++ > 10000) + return "function"; + var res = typeof (new test("1")) != 'function'; + return res ? "function" : "string"; } + test();