2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
5 * Jeff Walden <jwalden+code@mit.edu>
8 var gTestfile = 'extensibility.js';
9 //-----------------------------------------------------------------------------
10 var BUGNUMBER = 492849;
11 var summary = 'XML values cannot have their [[Extensible]] property changed';
13 print(BUGNUMBER + ": " + summary);
21 assertEq(Object.isExtensible(x), true);
25 Object.preventExtensions(x);
26 throw new Error("didn't throw");
30 assertEq(e instanceof TypeError, true,
31 "xmlValue.[[Extensible]] cannot be changed");
34 assertEq(Object.isExtensible(x), true);
37 /******************************************************************************/
39 if (typeof reportCompare === "function")
40 reportCompare(true, true);
42 print("All tests passed!");