projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug616762.js
1
// vim: set ts=4 sw=4 tw=99 et:
2
document = {
3
ready: function (x) {
4
this.exec = x;
5
}
6
};
7
8
var $ = function (x) {
9
return document;
10
};
11
12
(function ($) {
13
eval("(function(){\n" +
14
" var Private={};\n" +
15
" $(document).ready(function(){\n" +
16
" init()\n" +
17
" });\n" +
18
" function init(){\n" +
19
" $(Private)\n" +
20
" };\n" +
21
"})();");
22
})($);
23
document.exec();
24
25
// Don't crash or assert.
26