js/src/jit-test/tests/basic/bug651966.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/basic/bug651966.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +
     1.5 +function f(code) {
     1.6 +    g = eval("(function(){" + code + "})");
     1.7 +    g()
     1.8 +}
     1.9 +f();
    1.10 +f();
    1.11 +f();
    1.12 +f();
    1.13 +f();
    1.14 +f();
    1.15 +f();
    1.16 +f();
    1.17 +f();
    1.18 +f();
    1.19 +f();
    1.20 +f();
    1.21 +f();
    1.22 +f();
    1.23 +f();
    1.24 +f();
    1.25 +try { f("function x(){}(x())"); } catch (e) {}
    1.26 +
    1.27 +function f2() {
    1.28 +    a = {
    1.29 +        x
    1.30 +    } = x, (x._)
    1.31 +    function
    1.32 +    x()({})
    1.33 +}
    1.34 +try { f2(); } catch (e) {}
    1.35 +
    1.36 +function f3() {
    1.37 +  var x = 0;
    1.38 +  with ({}) { x = 'three'; }
    1.39 +  return x;
    1.40 +}
    1.41 +f3();

mercurial