summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug616762.js
blob: 02f5c953cf59f2b35b29fd84b8554e47b732c8c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// vim: set ts=8 sts=4 et sw=4 tw=99:
document = {
    ready: function (x) {
        this.exec = x;
    }
};

var $ = function (x) {
    return document;
};

(function ($) {
    eval("(function(){\n" +
         "  var Private={};\n" +
         "  $(document).ready(function(){\n" +
         "      init()\n" +
         "  });\n" +
         "  function init(){\n" +
         "      $(Private)\n" +
         "  };\n" +
         "})();");
})($);
document.exec();

// Don't crash or assert.