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
/
testBug558446.js
1
function f(a, b) { return a + " " + b; }
2
3
for (var i = 0; i < 10; ++i) {
4
var s = '';
5
var a = {toString: function () { s += 'a'; return 'a'; }};
6
var b = {toString: function () { s += 'b'; return 'b'; }};
7
f(a, b);
8
assertEq(s, 'ab');
9
}
10
11
checkStats({ traceTriggered:1 });