js/src/jit-test/tests/jaeger/closure-05.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/jaeger/closure-05.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +var gTestcases = new Array();
     1.5 +var gTc = gTestcases.length;
     1.6 +function TestCase(n, d, e, a) {
     1.7 +  gTestcases[gTc++] = this;
     1.8 +}
     1.9 +new TestCase("SECTION", "with MyObject, eval should return square of ");
    1.10 +test();
    1.11 +function test() {
    1.12 +  for (gTc = 0; gTc < gTestcases.length; gTc++) {
    1.13 +    var MYOBJECT = (function isPrototypeOf(message) {
    1.14 +        delete input;
    1.15 +      })();
    1.16 +    with({}) {
    1.17 +      gTestcases[gTc].actual = eval("");
    1.18 +    }
    1.19 +  }
    1.20 +} 

mercurial