js/src/jit-test/tests/ion/bug827821-3.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug827821-3.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +// |jit-test| error: TypeError
     1.5 +function TestCase(n, d, e, a) {}
     1.6 +function reportCompare (expected, actual, description) {
     1.7 +  var testcase = new TestCase();
     1.8 +}
     1.9 +eval("(function() { \
    1.10 +var summary = 'Do not hang/crash |for each| over object with getter set to map';\
    1.11 +var actual = 'No Crash';\
    1.12 +var expect = 'No Crash';\
    1.13 +reportCompare(expect, actual, summary);\
    1.14 +})();");
    1.15 +eval("(function() { TestCase = Object.prototype.toString; })();");
    1.16 +eval("gc(); reportCompare();");

mercurial