Debian Codegraph @

rhino/testsrc/tests/e4x/decompilation/regress-429249.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 gTestfile = 'regress-429249.js';
8
9 var summary = 'trap should not change decompilation <x/>';
10 var BUGNUMBER = 429249
11 var actual = '';
12 var expect = '';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 function g() {
18 return <x/>;
19 }
20
21 expect = 'function g() { return <x/>; }';
22 actual = g + '';
23 compareSource(expect, actual, summary + ' : before trap');
24
25 if (typeof trap == 'function')
26 {
27 trap(g, 0, "");
28 actual = g + '';
29 compareSource(expect, actual, summary + ' : after trap');
30 }
31
32 END();