js/src/jit-test/tests/auto-regress/bug657198.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 // |jit-test| slow;
     3 // Binary: cache/js-dbg-32-599d1c6cba63-linux
     4 // Flags: -j
     5 //
     6 eval("")
     7 o15 = {}
     8 function f11(o) {
     9     props = Object.getOwnPropertyNames(o)
    10     prop = props.length ? prop[prop.e] + "" : ""
    11     o[prop] = 3
    12 }
    13 function f12(o) {
    14     _someglobal_ = o;
    15     for (j = 0; j < 5; j++) {
    16         for (x in {
    17             x: {
    18                 x: function() {
    19                     return _someglobal_
    20                 }
    21             }.x()
    22         }.x) {
    23             ({
    24                 x: {
    25                     x: function() {}
    26                 }.x()
    27             }[x])
    28         }
    29         gc()
    30     }
    31 } {
    32     for (i = 0; i < 100; i++) {
    33         f12(o15)
    34         f11(o15)
    35     }
    36 }

mercurial