michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 885798; michael@0: var summary = "ES6 (draft May 2013) 15.7.3.7 Number.EPSILON"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: // Test value michael@0: assertEq(Number.EPSILON, Math.pow(2, -52)); michael@0: michael@0: // Test property attributes michael@0: var descriptor = Object.getOwnPropertyDescriptor(Number, 'EPSILON'); michael@0: assertEq(descriptor.writable, false); michael@0: assertEq(descriptor.configurable, false); michael@0: assertEq(descriptor.enumerable, false); michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true);