PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/basic/bug646968-3.js

http://github.com/zpao/v8monkey
JavaScript | 16 lines | 13 code | 3 blank | 0 comment | 3 complexity | 7458bbc7e6b3ac9317400f40f6a3b57e MD5 | raw file
 1var s, x = 0;
 2
 3s = '';
 4for (let x = x; x < 3; x++)
 5    s += x;
 6assertEq(s, '012');
 7
 8s = '';
 9for (let x = eval('x'); x < 3; x++)
10    s += x;
11assertEq(s, '012');
12
13s = ''
14for (let x = function () { with ({}) return x; }(); x < 3; x++)
15    s += x;
16assertEq(s, '012');