js/src/tests/ecma_5/misc/enumerate-undefined.js

branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
equal deleted inserted replaced
-1:000000000000 0:94df5b3c2e70
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 */
5
6 //-----------------------------------------------------------------------------
7 var BUGNUMBER = 547087;
8 var summary = 'JS_EnumerateStandardClasses uses wrong attributes for undefined';
9
10 print(BUGNUMBER + ": " + summary);
11
12 /**************
13 * BEGIN TEST *
14 **************/
15
16 for (var p in this);
17
18 assertEq(Object.getOwnPropertyDescriptor(this, "undefined").writable, false);
19
20 /******************************************************************************/
21
22 reportCompare(true, true);
23
24 print("All tests passed!");

mercurial