Debian Codegraph @

rhino/testsrc/tests/ecma_3/Regress/regress-469937.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-469937.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 469937;
9 var summary = 'Properties without DontEnum are sometimes not enumerated';
10 var actual = false;
11 var expect = true;
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 (function(){
17 var o = { }
18 o.PageLeft = 1;
19 o.Rect2 = 6;
20 delete o.Rect2;
21 for (var p in o);
22 o.Rect3 = 7;
23 found = false;
24 for (var p in o) if (p == 'Rect3') found = true;
25 actual = found;
26 })();
27
28 reportCompare(expect, actual, summary);