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
/
testBug621202.js
1
const MAX = 10000;
2
3
var arr = [];
4
var str = "";
5
for (var i = 0; i < MAX; ++i) {
6
/x/.test(str);
7
str = str + 'xxxxxxxxxxxxxx';
8
arr.push(str);
9
}
10
11
arr.length = Math.floor(MAX/3);
12
gc();
13
14
for (var i = 0; i < MAX; ++i) {
15
/x/.test(arr[i]);
16
}