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: * -Infinity expression has a type Number michael@0: * michael@0: * @path ch08/8.5/S8.5_A6.js michael@0: * @description Check type of -Infinity michael@0: */ michael@0: michael@0: var x=-Infinity; michael@0: michael@0: /////////////////////////////////////////////////////// michael@0: // CHECK#1 michael@0: if (typeof(x) !== "number"){ michael@0: $ERROR('#1: var x=-Infinity; typeof(x) === "number". Actual: ' + (typeof(x))); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////// michael@0: michael@0: /////////////////////////////////////////////////////// michael@0: // CHECK#2 michael@0: if (typeof(-Infinity) !== "number"){ michael@0: $ERROR('#2: typeof(-Infinity) === "number". Actual: ' + (typeof(-Infinity))); michael@0: } michael@0: // michael@0: ////////////////////////////////////////////////////////// michael@0: