closure-05.js (427B)
1 var gTestcases = new Array(); 2 var gTc = gTestcases.length; 3 function TestCase(n, d, e, a) { 4 gTestcases[gTc++] = this; 5 } 6 new TestCase("SECTION", "with MyObject, eval should return square of "); 7 test(); 8 function test() { 9 for (gTc = 0; gTc < gTestcases.length; gTc++) { 10 var MYOBJECT = (function isPrototypeOf(message) { 11 delete input; 12 })(); 13 with({}) { 14 gTestcases[gTc].actual = eval(""); 15 } 16 } 17 }