Debian Codegraph @

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

raw
1 function 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 }
8 assertEq(typeofTest(), "string,string,string,object,number,number,boolean,undefined,object,function,object,object");