Debian Codegraph @

rhino/testsrc/tests/js1_5/decompilation/regress-456964-01.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-456964-01.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 456964;
9 var summary = 'Infinite loop decompling function';
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
25 function Test()
26 {
27 var object = { abc: 1, def: 2};
28 var o = '';
29 for (var i in object)
30 o += i + ' = ' + object[i] + '\n';
31 return o;
32 }
33
34 print(Test);
35
36 expect = 'function Test ( ) { var object = { abc : 1 , def : 2 } ; var o = ""; for ( var i in object ) { o += i + " = " + object [ i ] + "\\ n "; } return o ; }';
37 actual = Test + '';
38
39 compareSource(expect, actual, summary);
40
41 exitFunc ('test');
42 }