Debian Codegraph @

rhino/testsrc/tests/js1_5/extensions/regress-355736.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
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 }