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

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 function f(s) {
     2     eval(s);
     3     return function() {
     4         with({}) {};
     5         return b;
     6     };
     7 }
     8 var b = 1;
     9 var g1 = f("");
    10 var g2 = f("var b = 2;");
    11 g1('');
    12 assertEq(g2(''), 2);

mercurial