js/src/jit-test/tests/ion/bug770332.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/bug770332.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +function TestCase(n, d, e, a) {}
     1.5 +function reportCompare (expected, actual, description) {
     1.6 +  var testcase = new TestCase("unknown-test-name", description, expected, actual);
     1.7 +}
     1.8 +var status = 'Testing scope after changing obj.__proto__';
     1.9 +function test() {
    1.10 +  let ( actual = [ ]  ) TestCase   .__proto__ = null;
    1.11 +  reportCompare (expect, actual, status);
    1.12 +}
    1.13 +var actual = 'error';
    1.14 +var expect = 'error';
    1.15 +for (i = 0; i < 12000; i++)  {
    1.16 +  test();
    1.17 +}

mercurial