michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: michael@0: var BUGNUMBER = 885798; michael@0: var summary = "ES6 (draft April 2014) 20.1.2.6 Number.MAX_SAFE_INTEGER"; 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.MAX_SAFE_INTEGER, Math.pow(2, 53) - 1); michael@0: michael@0: //Test property attributes michael@0: var descriptor = Object.getOwnPropertyDescriptor(Number, 'MAX_SAFE_INTEGER'); michael@0: 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);