js/src/jit-test/tests/gc/bug-924690.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 x = []
     2 try {
     3     (function() {
     4         schedulegc(1);
     5         ((function() {
     6             return {
     7                 y: function() {
     8                     u() = []
     9                 }
    10             }
    11         })())
    12     })()
    13     watch.call(x, "valueOf", function() {})
    14     gc()
    15 } catch (e) { print(e); }
    16 try {
    17     (function() {
    18         x.valueOf =
    19         (function() {
    20                 y();
    21         })
    22     })()
    23     x + 2
    24     print('foo')
    25 } catch (e) { print(e); }

mercurial