|
@@ -7912,18 +7912,16 @@ begin
|
|
|
' if (5 == this.cI) ;',
|
|
|
' if (this.cI == 6) ;',
|
|
|
' if (7 == this.cI) ;',
|
|
|
- ' var $with1 = this;',
|
|
|
- ' if ($with1.cI == 11) ;',
|
|
|
- ' if (12 == $with1.cI) ;',
|
|
|
+ ' if (this.cI == 11) ;',
|
|
|
+ ' if (12 == this.cI) ;',
|
|
|
' };',
|
|
|
' this.DoMore = function () {',
|
|
|
' if (this.cI == 8) ;',
|
|
|
' if (this.cI == 9) ;',
|
|
|
' if (10 == this.cI) ;',
|
|
|
' if (11 == this.cI) ;',
|
|
|
- ' var $with1 = this;',
|
|
|
- ' if ($with1.cI == 13) ;',
|
|
|
- ' if (14 == $with1.cI) ;',
|
|
|
+ ' if (this.cI == 13) ;',
|
|
|
+ ' if (14 == this.cI) ;',
|
|
|
' };',
|
|
|
'});',
|
|
|
'this.Obj = null;',
|
|
@@ -8229,10 +8227,8 @@ begin
|
|
|
' l = rtl.freeLoc(l);',
|
|
|
' rtl.free(o, "Obj");',
|
|
|
' rtl.free(o, "Obj");',
|
|
|
- ' var $with1 = o;',
|
|
|
- ' rtl.free($with1, "Obj");',
|
|
|
- ' var $with2 = o;',
|
|
|
- ' rtl.free($with2, "Obj");',
|
|
|
+ ' rtl.free(o, "Obj");',
|
|
|
+ ' rtl.free(o, "Obj");',
|
|
|
' Result = rtl.freeLoc(Result);',
|
|
|
' Result = rtl.freeLoc(Result);',
|
|
|
' return Result;',
|
|
@@ -9360,7 +9356,7 @@ begin
|
|
|
Add(' a:=test1.texta.new();');
|
|
|
Add(' a:=test1.texta.new(3);');
|
|
|
ConvertProgram;
|
|
|
- CheckSource('TestExternalClass_ObjectCreate',
|
|
|
+ CheckSource('TestExternalClass_New',
|
|
|
LinesToStr([ // statements
|
|
|
'this.A = null;',
|
|
|
'']),
|
|
@@ -9368,10 +9364,9 @@ begin
|
|
|
'$mod.A = new ExtA();',
|
|
|
'$mod.A = new ExtA();',
|
|
|
'$mod.A = new ExtA(1,2);',
|
|
|
- 'var $with1 = ExtA;',
|
|
|
- '$mod.A = new $with1();',
|
|
|
- '$mod.A = new $with1();',
|
|
|
- '$mod.A = new $with1(2,2);',
|
|
|
+ '$mod.A = new ExtA();',
|
|
|
+ '$mod.A = new ExtA();',
|
|
|
+ '$mod.A = new ExtA(2,2);',
|
|
|
'$mod.A = new ExtA();',
|
|
|
'$mod.A = new ExtA();',
|
|
|
'$mod.A = new ExtA(3,2);',
|