michael@0: /* 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 = 690031; michael@0: var summary = michael@0: 'Exclude __proto__ from showing up when enumerating properties of ' + michael@0: 'Object.prototype again'; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: var keys = Object.getOwnPropertyNames(Object.prototype); michael@0: assertEq(keys.indexOf("__proto__"), -1, michael@0: "shouldn't have gotten __proto__ as a property of Object.prototype " + michael@0: "(got these properties: " + keys + ")"); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");