| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-322957.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 322957; |
| 9 |
var summary = 'TryMethod should not eat getter exceptions'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
|
| 13 |
printBugNumber(BUGNUMBER); |
| 14 |
printStatus (summary); |
| 15 |
|
| 16 |
var obj = { get toSource() { throw "EXCEPTION"; } }; |
| 17 |
|
| 18 |
var got_proper_exception = -1; |
| 19 |
|
| 20 |
try { |
| 21 |
uneval(obj); |
| 22 |
} catch (e) { |
| 23 |
got_proper_exception = (e === "EXCEPTION"); |
| 24 |
} |
| 25 |
|
| 26 |
expect = true; |
| 27 |
actual = got_proper_exception; |
| 28 |
reportCompare(expect, actual, summary); |