js/src/jit-test/tests/basic/bug908915.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| error: 42
     2 function f(y) {}
     3 for each(let e in newGlobal()) {
     4     if (e.name === "quit" || e.name == "readline" || e.name == "terminate" ||
     5 	e.name == "nestedShell")
     6 	continue;
     7     try {
     8         e();
     9     } catch (r) {}
    10 }
    11 (function() {
    12     arguments.__proto__.__proto__ = newGlobal()
    13     function f(y) {
    14         y()
    15     }
    16     for each(b in []) {
    17 	if (b.name === "quit" || b.name == "readline" || b.name == "terminate" ||
    18 	    b.name == "nestedShell")
    19 	    continue;
    20         try {
    21             f(b)
    22         } catch (e) {}
    23     }
    24 })();
    26 throw 42;

mercurial