PageRenderTime 10ms CodeModel.GetById 4ms app.highlight 2ms RepoModel.GetById 3ms app.codeStats 0ms

/js/src/jit-test/tests/basic/testArrayNaNIndex.js

http://github.com/zpao/v8monkey
JavaScript | 7 lines | 7 code | 0 blank | 0 comment | 3 complexity | d7f8091b3d484d6081082a10407a8770 MD5 | raw file
1function testArrayNaNIndex()
2{
3    for (var j = 0; j < 4; ++j) { [this[NaN]]; }
4    for (var j = 0; j < 5; ++j) { if([1][-0]) { } }
5    return "ok";
6}
7assertEq(testArrayNaNIndex(), "ok");