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

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

http://github.com/zpao/v8monkey
JavaScript | 10 lines | 9 code | 1 blank | 0 comment | 1 complexity | 974dea50eb204c387179b53d1c8f534e MD5 | raw file
 1
 2function foo() {
 3  var name = 2;
 4  var x = <a><name>what</name></a>;
 5  var y = "" + x.(name != 2);
 6  assertEq(y.match(/what/)[0], "what");
 7  var z = "" + x.(name = 10);
 8  assertEq(z.match(/10/)[0], "10");
 9}
10foo();