Bug 867856 - Fix intermittent timeout of bug743094.js test case. r=h4writer

This commit is contained in:
Nicolas B. Pierron 2013-07-17 11:51:19 -07:00
parent dac3810b4d
commit 8b65d18c25

View File

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