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
/
testForInLoopChangeIteratorType.js
1
function testForInLoopChangeIteratorType() {
2
for(y in [0,1,2]) y = NaN;
3
(function(){
4
[].__proto__.u = void 0;
5
for (let y in [5,6,7,8])
6
y = NaN;
7
delete [].__proto__.u;
8
})()
9
return "ok";
10
}
11
assertEq(testForInLoopChangeIteratorType(), "ok");