summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/misc/enumerate-undefined.js
blob: 17bc1c4c87af376b03cb8d984a41466032460b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

//-----------------------------------------------------------------------------
var BUGNUMBER = 547087;
var summary = 'JS_EnumerateStandardClasses uses wrong attributes for undefined';

print(BUGNUMBER + ": " + summary);

/**************
 * BEGIN TEST *
 **************/

for (var p in this);

assertEq(Object.getOwnPropertyDescriptor(this, "undefined").writable, false);

/******************************************************************************/

reportCompare(true, true);

print("All tests passed!");