repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
string-cons-tower.js
blob
fe6832eb7c7abe3f3584e25b3d924af1a6cf1c62
1
function foo(a) {
2
for (var i = 0; i < 100; ++i)
3
a = new String(a);
4
return a;
5
}
6
7
var result;
8
for (var i = 0; i < 10000; ++i)
9
result = foo("hello");
10
11
if (result != "hello")
12
throw new "Error: bad result: " + result;