PageRenderTime 18ms CodeModel.GetById 11ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
JavaScript | 8 lines | 8 code | 0 blank | 0 comment | 1 complexity | b02d6edac89af6ad3ac01f0fbb147565 MD5 | raw file
1function typeofTest()
2{
3  var values = ["hi", "hi", "hi", null, 5, 5.1, true, undefined, /foo/, typeofTest, [], {}], types = [];
4  for (var i = 0; i < values.length; i++)
5    types[i] = typeof values[i];
6  return types.toString();
7}
8assertEq(typeofTest(), "string,string,string,object,number,number,boolean,undefined,object,function,object,object");