michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: "use strict" michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 649570; michael@0: var summary = "|delete window.NaN| should throw a TypeError"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: var g = this, v = false; michael@0: try michael@0: { michael@0: delete this.NaN; michael@0: throw new Error("no exception thrown"); michael@0: } michael@0: catch (e) michael@0: { michael@0: assertEq(e instanceof TypeError, true, michael@0: "Expected a TypeError, got: " + e); michael@0: } michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");