| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
var gTestfile = 'regress-355736.js'; |
| 7 |
|
| 8 |
var BUGNUMBER = 355736; |
| 9 |
var summary = 'Decompilation of "[reserved]" has extra quotes'; |
| 10 |
var actual = ''; |
| 11 |
var expect = ''; |
| 12 |
var f; |
| 13 |
|
| 14 |
|
| 15 |
test(); |
| 16 |
|
| 17 |
|
| 18 |
function test() |
| 19 |
{ |
| 20 |
enterFunc ('test'); |
| 21 |
printBugNumber(BUGNUMBER); |
| 22 |
printStatus (summary); |
| 23 |
|
| 24 |
f = function() { [super] = q; }; |
| 25 |
expect = 'function() { [super] = q; }'; |
| 26 |
actual = f + ''; |
| 27 |
compareSource(expect, actual, summary + ': 1'); |
| 28 |
|
| 29 |
f = function() { return { get super() { } } }; |
| 30 |
expect = 'function() { return { super getter : function() { } }; }'; |
| 31 |
actual = f + ''; |
| 32 |
compareSource(expect, actual, summary + ': 2'); |
| 33 |
|
| 34 |
f = function() { [goto] = a }; |
| 35 |
expect = 'function() { [goto] = a; }'; |
| 36 |
actual = f + ''; |
| 37 |
compareSource(expect, actual, summary + ': 3'); |
| 38 |
|
| 39 |
exitFunc ('test'); |
| 40 |
} |