Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / basic / typeofTest.js
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");