Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / transition-cache-dictionary-crash.js
blob464b35f7bd30596e143a28350f0f8bd81c4bdfd2
1 description("Test to ensure we don't attempt to cache new property transitions on dictionary. Passes if you don't crash.");
3 var cacheableDictionary = {};
4 for (var i = 0; i < 500; i++)
5 cacheableDictionary["a" + i] = i;
7 function f(o) {
8 o.crash = "doom!";
10 f({});
11 f(cacheableDictionary);
12 f(cacheableDictionary);
13 f(cacheableDictionary);
14 f(cacheableDictionary);
15 f(cacheableDictionary);
16 f(cacheableDictionary);
17 f(cacheableDictionary);
18 f(cacheableDictionary);