| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-353146.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 353146; |
| 9 |
var summary = 'Decompilation of new expressions revisited'; |
| 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 |
var f; |
| 25 |
|
| 26 |
f = function () { return new (p(2))[1]; }; |
| 27 |
expect = 'function() { return new (p(2)[1]); }'; |
| 28 |
actual = f + ''; |
| 29 |
compareSource(expect, actual, summary); |
| 30 |
|
| 31 |
f = function () { return new p(2)[1]; }; |
| 32 |
expect = 'function () { return (new p(2))[1]; }'; |
| 33 |
actual = f + ''; |
| 34 |
compareSource(expect, actual, summary); |
| 35 |
|
| 36 |
exitFunc ('test'); |
| 37 |
} |