PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
JavaScript | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | a42dc8a78bbd3ea3fae7a306f13444a8 MD5 | raw file
 1
 2var a = [1,2,3,4];
 3var b = [{a:0,b:1},{a:0,b:1},{a:0,b:1}];
 4var c = {a:0,b:4.5};
 5var d = [1,2,3,true];
 6var e = {a:0,b:1,c:2};
 7var f = {a:0,b:1,c:true};
 8
 9var w = JSON.parse('[1,2,3,4]');
10var x = JSON.parse('{"a":0,"b":true,"c":4.5}');
11var y = JSON.parse('{"d":true,"b":true,"c":4.5}');
12var z = JSON.parse('[{"a":0,"b":1},{"a":0,"b":1},{"a":0,"b":1}]');