PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug625377.js

http://github.com/zpao/v8monkey
JavaScript | 13 lines | 13 code | 0 blank | 0 comment | 2 complexity | 5134d93ba01b394270521e0aaa9e433c MD5 | raw file
 1x = []
 2for(var i=0; i<3; i++) {
 3    var obj = { first: "first", second: "second" };
 4    var count = 0;
 5    for (var elem in obj) {
 6        delete obj.second;
 7        count++;
 8    }
 9    x.push(count);
10}
11assertEq(x[0], 1);
12assertEq(x[1], 1);
13assertEq(x[2], 1);