Debian Codegraph @

rhino/testsrc/tests/ecma/Statements/12.6.3-3.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 gTestfile = '12.6.3-3.js';
7
8 /**
9 File Name: 12.6.3-3.js
10 ECMA Section: for..in loops
11 Description:
12
13 This verifies the fix to
14 http://scopus.mcom.com/bugsplat/show_bug.cgi?id=112156
15 for..in should take general lvalue for first argument
16
17 Author: [email protected]
18 Date: 12 november 1997
19 */
20
21 var SECTION = "12.6.3-3";
22 var VERSION = "ECMA_1";
23 startTest();
24 var TITLE = "The for..in statement";
25
26 writeHeaderToLog( SECTION + " "+ TITLE);
27
28 var o = {};
29
30 var result = "";
31
32 for ( o.a in [1,2,3] ) { result += String( [1,2,3][o.a] ); }
33
34 new TestCase( SECTION,
35 "for ( o.a in [1,2,3] ) { result += String( [1,2,3][o.a] ); } result",
36 "123",
37 result );
38
39 test();
40