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
/
testDestructuring.js
1
function testDestructuring() {
2
var t = 0;
3
for (var i = 0; i < HOTLOOP + 1; ++i) {
4
var [r, g, b] = [1, 1, 1];
5
t += r + g + b;
6
}
7
return t
8
}
9
assertEq(testDestructuring(), (HOTLOOP + 1) * 3);