michael@0: // Copyright 2009 the Sputnik authors. All rights reserved. michael@0: // This code is governed by the BSD license found in the LICENSE file. michael@0: michael@0: /** michael@0: * Result of applying "typeof" operator to the object that is native and implements [[Call]] is "function" michael@0: * michael@0: * @path ch11/11.4/11.4.3/S11.4.3_A3.7.js michael@0: * @description typeof (object with [[Call]]) === "function" michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: if (typeof new Function() !== "function") { michael@0: $ERROR('#1: typeof new Function() === "function". Actual: ' + (typeof new Function())); michael@0: } michael@0: michael@0: //CHECK#2 michael@0: if (typeof Function() !== "function") { michael@0: $ERROR('#2: typeof Function() === "function". Actual: ' + (typeof Function())); michael@0: } michael@0: michael@0: //CHECK#3 michael@0: if (typeof Object !== "function") { michael@0: $ERROR('#3: typeof Object === "function". Actual: ' + (typeof Object)); michael@0: } michael@0: michael@0: //CHECK#4 michael@0: if (typeof String !== "function") { michael@0: $ERROR('#4: typeof String === "function". Actual: ' + (typeof String)); michael@0: } michael@0: michael@0: //CHECK5 michael@0: if (typeof Boolean !== "function") { michael@0: $ERROR('#5: typeof Boolean === "function". Actual: ' + (typeof Boolean)); michael@0: } michael@0: michael@0: //CHECK#6 michael@0: if (typeof Number !== "function") { michael@0: $ERROR('#6: typeof Number === "function". Actual: ' + (typeof Number)); michael@0: } michael@0: michael@0: //CHECK#7 michael@0: if (typeof Date !== "function") { michael@0: $ERROR('#7: typeof Date === "function". Actual: ' + (typeof Date)); michael@0: } michael@0: michael@0: //CHECK#8 michael@0: if (typeof Error !== "function") { michael@0: $ERROR('#8: typeof Error === "function". Actual: ' + (typeof Error)); michael@0: } michael@0: michael@0: //CHECK#9 michael@0: if (typeof RegExp !== "function") { michael@0: $ERROR('#9: typeof RegExp === "function". Actual: ' + (typeof RegExp)); michael@0: } michael@0: