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: * Function argument that isn't provided has a value of undefined michael@0: * michael@0: * @path ch08/8.1/S8.1_A5.js michael@0: * @description Call function without provided argument michael@0: */ michael@0: michael@0: /////////////////////////////////////// michael@0: // michael@0: function test(arg) { michael@0: // Check and make sure that arg is not undefined michael@0: if (typeof(arg) !== "undefined") { michael@0: $ERROR('#1: Function argument that isn\'t provided has a value of undefined. Actual: ' + (typeof(arg))); michael@0: } michael@0: } michael@0: michael@0: test(); michael@0: // michael@0: //////////////////////////////////////// michael@0: