blob: 464b35f7bd30596e143a28350f0f8bd81c4bdfd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
description("Test to ensure we don't attempt to cache new property transitions on dictionary. Passes if you don't crash.");
var cacheableDictionary = {};
for (var i = 0; i < 500; i++)
cacheableDictionary["a" + i] = i;
function f(o) {
o.crash = "doom!";
}
f({});
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
f(cacheableDictionary);
|