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
/
bug630865-6.js
1
var a = [];
2
var x, i;
3
for (i = 0; i < HOTLOOP + 10; i++) {
4
a[i] = function (b) { this.b = b; };
5
if (i != HOTLOOP + 9)
6
x = a[i].prototype;
7
}
8
for (i = 0; i < HOTLOOP + 10; i++)
9
x = new a[i];
10
assertEq(toString.call(x), "[object Object]");
11
assertEq(Object.getPrototypeOf(x), a[HOTLOOP + 9].prototype);