summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug827821-3.js
blob: 0db37061fc4f3e5b8b8320182988bbea03de7fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: TypeError
function TestCase(n, d, e, a) {}
function reportCompare (expected, actual, description) {
  var testcase = new TestCase();
}
eval("(function() { \
var summary = 'Do not hang/crash, blah blah blah';\
var actual = 'No Crash';\
var expect = 'No Crash';\
reportCompare(expect, actual, summary);\
})();");
eval("(function() { TestCase = Object.prototype.toString; })();");
eval("gc(); reportCompare();");