PageRenderTime 33ms CodeModel.GetById 25ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
JavaScript | 8 lines | 8 code | 0 blank | 0 comment | 1 complexity | 9f990674f7691f307c43d4cf8216d934 MD5 | raw file
1function testINITELEM()
2{
3    var x;
4    for (var i = 0; i < 10; ++i)
5        x = { 0: 5, 1: 5 };
6    return x[0] + x[1];
7}
8assertEq(testINITELEM(), 10);