michael@0: function TestCase(n, d, e, a) michael@0: this.passed = getTestCaseResult(e, a); michael@0: function getTestCaseResult(expected, actual) { michael@0: if (actual != actual) michael@0: return gTestcases; michael@0: } michael@0: gczeal(4); michael@0: try { michael@0: var TEST_STRING = new String(""); michael@0: new TestCase(null, 0,eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(0)") ); michael@0: new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(1)")); michael@0: new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(2)")); michael@0: new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(3)")); michael@0: new TestCase(null, null, Number.NaN, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)")); michael@0: new new let (r) (function () {}) (); michael@0: } catch(e) {}