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
/
testExistingPropToJoinedMethodAttempt-3.js
1
function f() {
2
var a = [], i, N = HOTLOOP + 2;
3
for (i = 0; i < N; i++) {
4
a[i] = {};
5
a[i].m = function() { return 0; };
6
a[i].m = function() { return 1; };
7
}
8
assertEq(a[N - 2].m === a[N - 1].m, false);
9
for (i = 0; i < N; i++) {
10
var f = a[i].m;
11
assertEq(f(), 1);
12
}
13
}
14
f();
15
f();