diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/baseline/bug842326.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/baseline/bug842326.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,16 @@ +function TestCase(n, d, e, a) +this.passed = getTestCaseResult(e, a); +function getTestCaseResult(expected, actual) { + if (actual != actual) + return gTestcases; +} +gczeal(4); +try { + var TEST_STRING = new String(""); + new TestCase(null, 0,eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(0)") ); + new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(1)")); + new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(2)")); + new TestCase(null, null, 0, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(3)")); + new TestCase(null, null, Number.NaN, eval("x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)")); + new new let (r) (function () {}) (); +} catch(e) {}