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: * There are two types of Function objects. Internal functions michael@0: * are built-in objects of the language, such as parseInt and Math.exp michael@0: * michael@0: * @path ch10/10.1/S10.1.1_A2_T1.js michael@0: * @description Checking types of parseInt and Math.exp michael@0: */ michael@0: michael@0: //CHECK#1 michael@0: if(typeof(Math.exp)!=="function") michael@0: $ERROR('#1: typeof(Math.exp(10))!=="function" '+typeof(Math.exp())); michael@0: michael@0: //CHECK#2 michael@0: if(typeof(parseInt)!=="function") michael@0: $ERROR('#2: typeof(parseInt())!=="function" '+typeof(parseInt())); michael@0: michael@0: