blob: e519b58920bf2a8d21d175f65fd4e0fadfebd24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
* Author: Emilio Cobos Álvarez <ecoal95@gmail.com>
*/
var BUGNUMBER = 1312948;
var summary = "Freezing a dictionary mode object with a length property should make Object.isFrozen report true";
print(BUGNUMBER + ": " + summary);
/* Convert to dictionary mode */
delete Array.prototype.slice;
Object.freeze(Array.prototype);
assertEq(Object.isFrozen(Array.prototype), true);
if (typeof reportCompare === "function")
reportCompare(true, true);
|