| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-469625.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 469625; |
| 9 |
var summary = 'TM: Array prototype and expression closures'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
test(); |
| 16 |
|
| 17 |
|
| 18 |
function test() |
| 19 |
{ |
| 20 |
enterFunc ('test'); |
| 21 |
printBugNumber(BUGNUMBER); |
| 22 |
printStatus (summary); |
| 23 |
|
| 24 |
expect = 'TypeError: [] is not a function'; |
| 25 |
|
| 26 |
jit(true); |
| 27 |
|
| 28 |
Array.prototype.__proto__ = function () 3; |
| 29 |
|
| 30 |
try |
| 31 |
{ |
| 32 |
[].__proto__(); |
| 33 |
} |
| 34 |
catch(ex) |
| 35 |
{ |
| 36 |
print(actual = ex + ''); |
| 37 |
} |
| 38 |
jit(false); |
| 39 |
|
| 40 |
reportCompare(expect, actual, summary); |
| 41 |
|
| 42 |
exitFunc ('test'); |
| 43 |
} |