| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-476257.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 476257; |
| 9 |
var summary = 'Do not assert: !JS_ON_TRACE(cx)'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
printBugNumber(BUGNUMBER); |
| 14 |
printStatus (summary); |
| 15 |
|
| 16 |
jit(true); |
| 17 |
|
| 18 |
function f1() { |
| 19 |
try |
| 20 |
{ |
| 21 |
__proto__.functional getter = function () |
| 22 |
{ |
| 23 |
if (typeof gczeal == 'function') { gczeal(0); } |
| 24 |
} |
| 25 |
for each (let [[]] in [true, new Boolean(true), new Boolean(true)]) {} |
| 26 |
} |
| 27 |
catch(ex) |
| 28 |
{ |
| 29 |
print(ex + ''); |
| 30 |
} |
| 31 |
} |
| 32 |
|
| 33 |
function f2() { |
| 34 |
try |
| 35 |
{ |
| 36 |
__proto__.functional getter = function () |
| 37 |
{ |
| 38 |
if (typeof dis == 'function') { dis(); } |
| 39 |
} |
| 40 |
for each (let [[]] in [true, new Boolean(true), new Boolean(true)]) {} |
| 41 |
} |
| 42 |
catch(ex) |
| 43 |
{ |
| 44 |
print(ex + ''); |
| 45 |
} |
| 46 |
} |
| 47 |
|
| 48 |
f1(); |
| 49 |
f2(); |
| 50 |
|
| 51 |
jit(false); |
| 52 |
|
| 53 |
reportCompare(expect, actual, summary); |