|
@@ -2137,7 +2137,7 @@ begin
|
|
|
' $mod.FuncA(Bar);',
|
|
|
'};',
|
|
|
'this.FuncA = function (Bar) {',
|
|
|
- ' if (Bar == 3);',
|
|
|
+ ' if (Bar === 3);',
|
|
|
'};'
|
|
|
]),
|
|
|
LinesToStr([
|
|
@@ -2173,7 +2173,7 @@ begin
|
|
|
' FuncB(i);',
|
|
|
' };',
|
|
|
' function FuncB(i) {',
|
|
|
- ' if (i == 3);',
|
|
|
+ ' if (i === 3);',
|
|
|
' };',
|
|
|
' FuncC(4);',
|
|
|
'};'
|
|
@@ -2238,8 +2238,8 @@ begin
|
|
|
]),
|
|
|
LinesToStr([
|
|
|
'if ($mod.Func2());',
|
|
|
- 'if ($mod.i == $mod.Func1());',
|
|
|
- 'if ($mod.i == $mod.Func1());'
|
|
|
+ 'if ($mod.i === $mod.Func1());',
|
|
|
+ 'if ($mod.i === $mod.Func1());'
|
|
|
]));
|
|
|
end;
|
|
|
|
|
@@ -3620,7 +3620,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'$impl.aRec = new $impl.TMyRecord();',
|
|
@@ -3844,11 +3844,11 @@ begin
|
|
|
'this.b = false;'
|
|
|
]),
|
|
|
LinesToStr([
|
|
|
- '$mod.b = $mod.c == "1";',
|
|
|
- '$mod.b = "2" == $mod.c;',
|
|
|
- '$mod.b = "3" == "4";',
|
|
|
- '$mod.b = $mod.c != "5";',
|
|
|
- '$mod.b = "6" != $mod.c;',
|
|
|
+ '$mod.b = $mod.c === "1";',
|
|
|
+ '$mod.b = "2" === $mod.c;',
|
|
|
+ '$mod.b = "3" === "4";',
|
|
|
+ '$mod.b = $mod.c !== "5";',
|
|
|
+ '$mod.b = "6" !== $mod.c;',
|
|
|
'$mod.b = $mod.c > "7";',
|
|
|
'$mod.b = "8" > $mod.c;',
|
|
|
'$mod.b = $mod.c >= "9";',
|
|
@@ -3979,8 +3979,8 @@ begin
|
|
|
'this.b =false;'
|
|
|
]),
|
|
|
LinesToStr([ // this.$main
|
|
|
- '$mod.b = $mod.s == $mod.t;',
|
|
|
- '$mod.b = $mod.s != $mod.t;',
|
|
|
+ '$mod.b = $mod.s === $mod.t;',
|
|
|
+ '$mod.b = $mod.s !== $mod.t;',
|
|
|
'$mod.b = $mod.s > $mod.t;',
|
|
|
'$mod.b = $mod.s >= $mod.t;',
|
|
|
'$mod.b = $mod.s < $mod.t;',
|
|
@@ -4037,9 +4037,9 @@ begin
|
|
|
'this.b = false;'
|
|
|
]),
|
|
|
LinesToStr([ // this.$main
|
|
|
- '$mod.b = $mod.s.charAt(1-1) == $mod.c;',
|
|
|
- '$mod.b = $mod.c == $mod.s.charAt(1 - 1);',
|
|
|
- '$mod.b = $mod.c != $mod.s.charAt(1 - 1);',
|
|
|
+ '$mod.b = $mod.s.charAt(1-1) === $mod.c;',
|
|
|
+ '$mod.b = $mod.c === $mod.s.charAt(1 - 1);',
|
|
|
+ '$mod.b = $mod.c !== $mod.s.charAt(1 - 1);',
|
|
|
'$mod.b = $mod.c > $mod.s.charAt(1 - 1);',
|
|
|
'$mod.b = $mod.c >= $mod.s.charAt(1 - 1);',
|
|
|
'$mod.b = $mod.c < $mod.s.charAt(1 - 1);',
|
|
@@ -4330,7 +4330,7 @@ begin
|
|
|
' var $loopend1 = 2;',
|
|
|
' for ($mod.vI = 1; $mod.vI <= $loopend1; $mod.vI++);',
|
|
|
' if($mod.vI>$loopend1)$mod.vI--;',
|
|
|
- ' if ($mod.vI==3) ;'
|
|
|
+ ' if ($mod.vI===3) ;'
|
|
|
]));
|
|
|
end;
|
|
|
|
|
@@ -4415,10 +4415,10 @@ begin
|
|
|
Add('begin');
|
|
|
Add(' vi:=1;');
|
|
|
Add(' asm');
|
|
|
- Add(' if (vI==1) {');
|
|
|
+ Add(' if (vI===1) {');
|
|
|
Add(' vI=2;');
|
|
|
Add(' }');
|
|
|
- Add(' if (vI==2){ vI=3; }');
|
|
|
+ Add(' if (vI===2){ vI=3; }');
|
|
|
Add(' end;');
|
|
|
Add(' VI:=4;');
|
|
|
ConvertProgram;
|
|
@@ -4428,10 +4428,10 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.vI = 1;',
|
|
|
- 'if (vI==1) {',
|
|
|
+ 'if (vI===1) {',
|
|
|
' vI=2;',
|
|
|
'}',
|
|
|
- 'if (vI==2){ vI=3; }',
|
|
|
+ 'if (vI===2){ vI=3; }',
|
|
|
';',
|
|
|
'$mod.vI = 4;'
|
|
|
]));
|
|
@@ -4572,7 +4572,7 @@ begin
|
|
|
' throw $e',
|
|
|
' } else if ($mod.Exception.isPrototypeOf($e)) {',
|
|
|
' var E = $e;',
|
|
|
- ' if (E.Msg == "") throw E;',
|
|
|
+ ' if (E.Msg === "") throw E;',
|
|
|
' } else {',
|
|
|
' $mod.vI = 5;',
|
|
|
' }',
|
|
@@ -4604,7 +4604,7 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'var $tmp1 = $mod.vI;',
|
|
|
- 'if ($tmp1 == 1) {} else if ($tmp1 == 2){ $mod.vI = 3 }else {',
|
|
|
+ 'if ($tmp1 === 1) {} else if ($tmp1 === 2){ $mod.vI = 3 }else {',
|
|
|
' $mod.vI = 4;',
|
|
|
'};'
|
|
|
]));
|
|
@@ -4655,7 +4655,7 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'var $tmp1 = $mod.Vi;',
|
|
|
- 'if ($tmp1 == 1) {',
|
|
|
+ 'if ($tmp1 === 1) {',
|
|
|
' $mod.Vi = 2;',
|
|
|
' $mod.Vi = 3;',
|
|
|
'};'
|
|
@@ -4706,7 +4706,7 @@ begin
|
|
|
'var $tmp1 = $mod.vI;',
|
|
|
'if (($tmp1 >= 1) && ($tmp1 <= 3)){',
|
|
|
' $mod.vI = 14',
|
|
|
- '} else if (($tmp1 == 4) || ($tmp1 == 5)){',
|
|
|
+ '} else if (($tmp1 === 4) || ($tmp1 === 5)){',
|
|
|
' $mod.vI = 16',
|
|
|
'} else if ((($tmp1 >= 6) && ($tmp1 <= 7)) || (($tmp1 >= 9) && ($tmp1 <= 10))) ;'
|
|
|
]));
|
|
@@ -4773,8 +4773,8 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.Arr = [];',
|
|
|
- 'if (rtl.length($mod.Arr) == 0) ;',
|
|
|
- 'if (rtl.length($mod.Arr) == 0) ;',
|
|
|
+ 'if (rtl.length($mod.Arr) === 0) ;',
|
|
|
+ 'if (rtl.length($mod.Arr) === 0) ;',
|
|
|
'if (rtl.length($mod.Arr) > 0) ;',
|
|
|
'if (rtl.length($mod.Arr) > 0) ;',
|
|
|
'$mod.DoIt([],[]);',
|
|
@@ -4815,8 +4815,8 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.Arr2 = [];',
|
|
|
- 'if (rtl.length($mod.Arr2) == 0) ;',
|
|
|
- 'if (rtl.length($mod.Arr2) == 0) ;',
|
|
|
+ 'if (rtl.length($mod.Arr2) === 0) ;',
|
|
|
+ 'if (rtl.length($mod.Arr2) === 0) ;',
|
|
|
'$mod.i = 0;',
|
|
|
'$mod.i = 0;',
|
|
|
'$mod.i = rtl.length($mod.Arr2) - 1;',
|
|
@@ -4862,7 +4862,7 @@ begin
|
|
|
' this.Int = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.Int == b.Int;',
|
|
|
+ ' return this.Int === b.Int;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.Arr = [];',
|
|
@@ -5227,7 +5227,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.ArrInt = [];',
|
|
@@ -5299,7 +5299,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.ArrInt = [];',
|
|
@@ -5369,7 +5369,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.ArrInt = [];',
|
|
@@ -5494,7 +5494,7 @@ begin
|
|
|
' this.Bold = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.Bold == b.Bold;',
|
|
|
+ ' return this.Bold === b.Bold;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.Rec = new $mod.TRecA();'
|
|
@@ -5531,7 +5531,7 @@ begin
|
|
|
' this.vI = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.vI == b.vI;',
|
|
|
+ ' return this.vI === b.vI;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.Int = 0;',
|
|
@@ -5582,7 +5582,7 @@ begin
|
|
|
' this.N = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.N == b.N;',
|
|
|
+ ' return this.N === b.N;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.TBigRec = function (s) {',
|
|
@@ -5600,7 +5600,7 @@ begin
|
|
|
' this.Enums = {};',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return (this.Int == b.Int) && ((this.D == b.D) && ((this.Arr == b.Arr)',
|
|
|
+ ' return (this.Int === b.Int) && ((this.D === b.D) && ((this.Arr === b.Arr)',
|
|
|
' && (this.Small.$equal(b.Small) && rtl.eqSet(this.Enums, b.Enums))));',
|
|
|
' };',
|
|
|
'};',
|
|
@@ -5635,7 +5635,7 @@ begin
|
|
|
' this.Bold = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.Bold == b.Bold;',
|
|
|
+ ' return this.Bold === b.Bold;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.DoDefault = function (r) {',
|
|
@@ -5682,7 +5682,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.DoIt = function (vG,vH,vI) {',
|
|
@@ -5757,7 +5757,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.DoIt = function (vG,vH,vI) {',
|
|
@@ -5815,7 +5815,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.GetRec = function (vB) {',
|
|
@@ -5857,7 +5857,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.DoIt = function (vG,vH,vI) {',
|
|
@@ -5920,7 +5920,7 @@ begin
|
|
|
' this.f = {};',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return (this.i == b.i) && (rtl.eqCallback(this.Event, b.Event) && rtl.eqSet(this.f, b.f));',
|
|
|
+ ' return (this.i === b.i) && (rtl.eqCallback(this.Event, b.Event) && rtl.eqSet(this.f, b.f));',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.TNested = function (s) {',
|
|
@@ -5965,7 +5965,7 @@ begin
|
|
|
' this.i = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return this.i == b.i;',
|
|
|
+ ' return this.i === b.i;',
|
|
|
' };',
|
|
|
'};',
|
|
|
'this.Jv = undefined;',
|
|
@@ -6590,7 +6590,7 @@ begin
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.Obj = $mod.TObject.$create("Create");',
|
|
|
'$mod.TObject.vI = 3;',
|
|
|
- 'if ($mod.TObject.vI == 4);',
|
|
|
+ 'if ($mod.TObject.vI === 4);',
|
|
|
'$mod.TObject.Sub=null;',
|
|
|
'$mod.Obj.$class.Sub=null;',
|
|
|
'$mod.Obj.Sub.$class.Sub=null;',
|
|
@@ -6736,7 +6736,7 @@ begin
|
|
|
' return Result;',
|
|
|
' };',
|
|
|
' this.SetInt = function (Value) {',
|
|
|
- ' if (Value == this.Fy) return;',
|
|
|
+ ' if (Value === this.Fy) return;',
|
|
|
' this.Fy = Value;',
|
|
|
' };',
|
|
|
' this.DoIt = function () {',
|
|
@@ -6750,7 +6750,7 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.Obj.Fy = $mod.Obj.Fx + 1;',
|
|
|
- 'if ($mod.Obj.GetInt() == 2);',
|
|
|
+ 'if ($mod.Obj.GetInt() === 2);',
|
|
|
'$mod.Obj.SetInt($mod.Obj.GetInt() + 2);',
|
|
|
'$mod.Obj.SetInt($mod.Obj.Fx);'
|
|
|
]));
|
|
@@ -6821,11 +6821,11 @@ begin
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.TObject.Fy = $mod.TObject.Fx + 1;',
|
|
|
- 'if ($mod.TObject.GetInt() == 2);',
|
|
|
+ 'if ($mod.TObject.GetInt() === 2);',
|
|
|
'$mod.TObject.SetInt($mod.TObject.GetInt() + 2);',
|
|
|
'$mod.TObject.SetInt($mod.TObject.Fx);',
|
|
|
'$mod.Obj.$class.Fy = $mod.Obj.Fx + 1;',
|
|
|
- 'if ($mod.Obj.$class.GetInt() == 2);',
|
|
|
+ 'if ($mod.Obj.$class.GetInt() === 2);',
|
|
|
'$mod.Obj.$class.SetInt($mod.Obj.$class.GetInt() + 2);',
|
|
|
'$mod.Obj.$class.SetInt($mod.Obj.Fx);'
|
|
|
]));
|
|
@@ -7090,8 +7090,8 @@ begin
|
|
|
'this.b = false;'
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
- 'if ($mod.Obj != null);',
|
|
|
- '$mod.b = ($mod.Obj != null) || false;'
|
|
|
+ 'if ($mod.Obj !== null);',
|
|
|
+ '$mod.b = ($mod.Obj !== null) || false;'
|
|
|
]));
|
|
|
end;
|
|
|
|
|
@@ -7442,18 +7442,18 @@ begin
|
|
|
'this.ProcA = function (A) {',
|
|
|
' A.set(null);',
|
|
|
' A.set(A.get());',
|
|
|
- ' if (A.get() == null);',
|
|
|
- ' if (null == A.get());',
|
|
|
+ ' if (A.get() === null);',
|
|
|
+ ' if (null === A.get());',
|
|
|
'};',
|
|
|
'this.ProcB = function (A) {',
|
|
|
' A.set(null);',
|
|
|
' A.set(A.get());',
|
|
|
- ' if (A.get() == null);',
|
|
|
- ' if (null == A.get());',
|
|
|
+ ' if (A.get() === null);',
|
|
|
+ ' if (null === A.get());',
|
|
|
'};',
|
|
|
'this.ProcC = function (A) {',
|
|
|
- ' if (A == null);',
|
|
|
- ' if (null == A);',
|
|
|
+ ' if (A === null);',
|
|
|
+ ' if (null === A);',
|
|
|
'};',
|
|
|
'this.o = null;',
|
|
|
'']),
|
|
@@ -7948,35 +7948,35 @@ begin
|
|
|
' this.$final = function () {',
|
|
|
' };',
|
|
|
' this.DoIt = function () {',
|
|
|
- ' if (this.cI == 4) ;',
|
|
|
- ' if (5 == this.cI) ;',
|
|
|
- ' if (this.cI == 6) ;',
|
|
|
- ' if (7 == this.cI) ;',
|
|
|
- ' if (this.cI == 11) ;',
|
|
|
- ' if (12 == this.cI) ;',
|
|
|
+ ' if (this.cI === 4) ;',
|
|
|
+ ' if (5 === this.cI) ;',
|
|
|
+ ' if (this.cI === 6) ;',
|
|
|
+ ' if (7 === this.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) ;',
|
|
|
- ' if (this.cI == 13) ;',
|
|
|
- ' if (14 == this.cI) ;',
|
|
|
+ ' if (this.cI === 8) ;',
|
|
|
+ ' if (this.cI === 9) ;',
|
|
|
+ ' if (10 === this.cI) ;',
|
|
|
+ ' if (11 === this.cI) ;',
|
|
|
+ ' if (this.cI === 13) ;',
|
|
|
+ ' if (14 === this.cI) ;',
|
|
|
' };',
|
|
|
'});',
|
|
|
'this.Obj = null;',
|
|
|
'this.Cla = null;',
|
|
|
'']),
|
|
|
LinesToStr([
|
|
|
- 'if ($mod.TObject.cI == 21) ;',
|
|
|
- 'if ($mod.Obj.cI == 22) ;',
|
|
|
- 'if ($mod.Cla.cI == 23) ;',
|
|
|
+ 'if ($mod.TObject.cI === 21) ;',
|
|
|
+ 'if ($mod.Obj.cI === 22) ;',
|
|
|
+ 'if ($mod.Cla.cI === 23) ;',
|
|
|
'var $with1 = $mod.Obj;',
|
|
|
- 'if ($with1.cI == 24) ;',
|
|
|
+ 'if ($with1.cI === 24) ;',
|
|
|
'var $with2 = $mod.TObject;',
|
|
|
- 'if ($with2.cI == 25) ;',
|
|
|
+ 'if ($with2.cI === 25) ;',
|
|
|
'var $with3 = $mod.Cla;',
|
|
|
- 'if ($with3.cI == 26) ;',
|
|
|
+ 'if ($with3.cI === 26) ;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -8578,18 +8578,18 @@ begin
|
|
|
'this.C = null;'
|
|
|
]),
|
|
|
LinesToStr([ // $mod.$main
|
|
|
- '$mod.b = $mod.C == null;',
|
|
|
- '$mod.b = null == $mod.C;',
|
|
|
- '$mod.b = $mod.C == $mod.Obj.ClassType;',
|
|
|
- '$mod.b = $mod.Obj.ClassType == $mod.C;',
|
|
|
- '$mod.b = $mod.C == $mod.TObject;',
|
|
|
- '$mod.b = $mod.TObject == $mod.C;',
|
|
|
- '$mod.b = $mod.C != null;',
|
|
|
- '$mod.b = null != $mod.C;',
|
|
|
- '$mod.b = $mod.C != $mod.Obj.ClassType;',
|
|
|
- '$mod.b = $mod.Obj.ClassType != $mod.C;',
|
|
|
- '$mod.b = $mod.C != $mod.TObject;',
|
|
|
- '$mod.b = $mod.TObject != $mod.C;',
|
|
|
+ '$mod.b = $mod.C === null;',
|
|
|
+ '$mod.b = null === $mod.C;',
|
|
|
+ '$mod.b = $mod.C === $mod.Obj.ClassType;',
|
|
|
+ '$mod.b = $mod.Obj.ClassType === $mod.C;',
|
|
|
+ '$mod.b = $mod.C === $mod.TObject;',
|
|
|
+ '$mod.b = $mod.TObject === $mod.C;',
|
|
|
+ '$mod.b = $mod.C !== null;',
|
|
|
+ '$mod.b = null !== $mod.C;',
|
|
|
+ '$mod.b = $mod.C !== $mod.Obj.ClassType;',
|
|
|
+ '$mod.b = $mod.Obj.ClassType !== $mod.C;',
|
|
|
+ '$mod.b = $mod.C !== $mod.TObject;',
|
|
|
+ '$mod.b = $mod.TObject !== $mod.C;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -8720,19 +8720,19 @@ begin
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.Obj.$class.FA = $mod.Obj.FA;',
|
|
|
'$mod.Obj.$class.SetA($mod.Obj.$class.GetA());',
|
|
|
- '$mod.b = $mod.Obj.FA == 4;',
|
|
|
- '$mod.b = $mod.Obj.$class.GetA() == $mod.Obj.$class.GetA();',
|
|
|
- '$mod.b = 5 == $mod.Obj.FA;',
|
|
|
+ '$mod.b = $mod.Obj.FA === 4;',
|
|
|
+ '$mod.b = $mod.Obj.$class.GetA() === $mod.Obj.$class.GetA();',
|
|
|
+ '$mod.b = 5 === $mod.Obj.FA;',
|
|
|
'$mod.Cla.FA = 6;',
|
|
|
'$mod.Cla.FA = $mod.Cla.FA;',
|
|
|
'$mod.Cla.SetA($mod.Cla.GetA());',
|
|
|
- '$mod.b = $mod.Cla.FA == 7;',
|
|
|
- '$mod.b = $mod.Cla.GetA() == $mod.Cla.GetA();',
|
|
|
- '$mod.b = 8 == $mod.Cla.FA;',
|
|
|
+ '$mod.b = $mod.Cla.FA === 7;',
|
|
|
+ '$mod.b = $mod.Cla.GetA() === $mod.Cla.GetA();',
|
|
|
+ '$mod.b = 8 === $mod.Cla.FA;',
|
|
|
'$mod.TObject.FA = 9;',
|
|
|
'$mod.TObject.SetA($mod.TObject.GetA());',
|
|
|
- '$mod.b = $mod.TObject.FA == 10;',
|
|
|
- '$mod.b = 11 == $mod.TObject.FA;',
|
|
|
+ '$mod.b = $mod.TObject.FA === 10;',
|
|
|
+ '$mod.b = 11 === $mod.TObject.FA;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -8765,9 +8765,9 @@ begin
|
|
|
' };',
|
|
|
' this.ProcA = function () {',
|
|
|
' var b = false;',
|
|
|
- ' b = this == null;',
|
|
|
- ' b = this.GlobalId == 3;',
|
|
|
- ' b = 4 == this.GlobalId;',
|
|
|
+ ' b = this === null;',
|
|
|
+ ' b = this.GlobalId === 3;',
|
|
|
+ ' b = 4 === this.GlobalId;',
|
|
|
' this.GlobalId = 5;',
|
|
|
' this.ProcA();',
|
|
|
' };',
|
|
@@ -10161,18 +10161,18 @@ begin
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(2);',
|
|
|
- '$mod.b = $mod.vP == null;',
|
|
|
- '$mod.b = null == $mod.vP;',
|
|
|
+ '$mod.b = $mod.vP === null;',
|
|
|
+ '$mod.b = null === $mod.vP;',
|
|
|
'$mod.b = rtl.eqCallback($mod.vP,$mod.vQ);',
|
|
|
'$mod.b = rtl.eqCallback($mod.vP, $mod.DoIt);',
|
|
|
'$mod.b = rtl.eqCallback($mod.DoIt, $mod.vP);',
|
|
|
- '$mod.b = $mod.vP != null;',
|
|
|
- '$mod.b = null != $mod.vP;',
|
|
|
+ '$mod.b = $mod.vP !== null;',
|
|
|
+ '$mod.b = null !== $mod.vP;',
|
|
|
'$mod.b = !rtl.eqCallback($mod.vP,$mod.vQ);',
|
|
|
'$mod.b = !rtl.eqCallback($mod.vP, $mod.DoIt);',
|
|
|
'$mod.b = !rtl.eqCallback($mod.DoIt, $mod.vP);',
|
|
|
- '$mod.b = $mod.vP != null;',
|
|
|
- 'if ($mod.vP != null) ;',
|
|
|
+ '$mod.b = $mod.vP !== null;',
|
|
|
+ 'if ($mod.vP !== null) ;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -10230,19 +10230,19 @@ begin
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(2);',
|
|
|
- '$mod.b = $mod.vP == null;',
|
|
|
- '$mod.b = null == $mod.vP;',
|
|
|
+ '$mod.b = $mod.vP === null;',
|
|
|
+ '$mod.b = null === $mod.vP;',
|
|
|
'$mod.b = rtl.eqCallback($mod.vP,$mod.vQ);',
|
|
|
'$mod.b = rtl.eqCallback($mod.vP, $mod.DoIt);',
|
|
|
'$mod.b = rtl.eqCallback($mod.DoIt, $mod.vP);',
|
|
|
- '$mod.b = 4 == $mod.vP(1);',
|
|
|
- '$mod.b = $mod.vP != null;',
|
|
|
- '$mod.b = null != $mod.vP;',
|
|
|
+ '$mod.b = 4 === $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.vP !== null;',
|
|
|
+ '$mod.b = null !== $mod.vP;',
|
|
|
'$mod.b = !rtl.eqCallback($mod.vP,$mod.vQ);',
|
|
|
'$mod.b = !rtl.eqCallback($mod.vP, $mod.DoIt);',
|
|
|
'$mod.b = !rtl.eqCallback($mod.DoIt, $mod.vP);',
|
|
|
- '$mod.b = 6 != $mod.vP(1);',
|
|
|
- '$mod.b = $mod.vP != null;',
|
|
|
+ '$mod.b = 6 !== $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.vP !== null;',
|
|
|
'$mod.DoIt($mod.vP(1));',
|
|
|
'$mod.DoIt($mod.vP(2));',
|
|
|
'']));
|
|
@@ -10304,13 +10304,13 @@ begin
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(1);',
|
|
|
'$mod.vP(2);',
|
|
|
- '$mod.b = $mod.vP(1) == $mod.vQ(1);',
|
|
|
- '$mod.b = $mod.vP(1) == 3;',
|
|
|
- '$mod.b = 4 == $mod.vP(1);',
|
|
|
- '$mod.b = $mod.vP(1) != $mod.vQ(1);',
|
|
|
- '$mod.b = $mod.vP(1) != 5;',
|
|
|
- '$mod.b = 6 != $mod.vP(1);',
|
|
|
- '$mod.b = $mod.vP != null;',
|
|
|
+ '$mod.b = $mod.vP(1) === $mod.vQ(1);',
|
|
|
+ '$mod.b = $mod.vP(1) === 3;',
|
|
|
+ '$mod.b = 4 === $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.vP(1) !== $mod.vQ(1);',
|
|
|
+ '$mod.b = $mod.vP(1) !== 5;',
|
|
|
+ '$mod.b = 6 !== $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.vP !== null;',
|
|
|
'$mod.DoIt($mod.vP(1));',
|
|
|
'$mod.DoIt($mod.vP(1));',
|
|
|
'$mod.DoIt($mod.vP(2));',
|
|
@@ -10605,12 +10605,12 @@ begin
|
|
|
'$mod.Obj.FOnFoo(1);',
|
|
|
'$mod.Obj.GetFoo()(1);',
|
|
|
'$mod.Obj.GetEvents(6)(1);',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo == null;',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() == null;',
|
|
|
- '$mod.b = $mod.Obj.GetEvents(7) == null;',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo != null;',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() != null;',
|
|
|
- '$mod.b = $mod.Obj.GetEvents(8) != null;',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo === null;',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() === null;',
|
|
|
+ '$mod.b = $mod.Obj.GetEvents(7) === null;',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetEvents(8) !== null;',
|
|
|
'$mod.b = rtl.eqCallback($mod.Obj.FOnFoo, $mod.vP);',
|
|
|
'$mod.b = rtl.eqCallback($mod.Obj.GetFoo(), $mod.vP);',
|
|
|
'$mod.b = rtl.eqCallback($mod.Obj.GetEvents(9), $mod.vP);',
|
|
@@ -10626,9 +10626,9 @@ begin
|
|
|
'$mod.b = !rtl.eqCallback($mod.Obj.FOnFoo, rtl.createCallback($mod.Obj, "DoIt"));',
|
|
|
'$mod.b = !rtl.eqCallback($mod.Obj.GetFoo(), rtl.createCallback($mod.Obj, "DoIt"));',
|
|
|
'$mod.b = !rtl.eqCallback($mod.Obj.GetEvents(12), rtl.createCallback($mod.Obj, "DoIt"));',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo != null;',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() != null;',
|
|
|
- '$mod.b = $mod.Obj.GetEvents(13) != null;',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetEvents(13) !== null;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -10750,15 +10750,15 @@ begin
|
|
|
'$mod.Obj.FOnFoo(1);',
|
|
|
'$mod.Obj.GetFoo()(1);',
|
|
|
'$mod.Obj.GetEvents(6)(1);',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo(1) == $mod.vP(1);',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() == $mod.vP(1);',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo(1) == $mod.Obj.FOnFoo(1);',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() == $mod.Obj.FOnFoo(1);',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo(1) != $mod.Obj.FOnFoo(1);',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() != $mod.Obj.FOnFoo(1);',
|
|
|
- '$mod.b = $mod.Obj.FOnFoo != null;',
|
|
|
- '$mod.b = $mod.Obj.GetFoo() != null;',
|
|
|
- '$mod.b = $mod.Obj.GetEvents(13) != null;',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo(1) === $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() === $mod.vP(1);',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo(1) === $mod.Obj.FOnFoo(1);',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() === $mod.Obj.FOnFoo(1);',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo(1) !== $mod.Obj.FOnFoo(1);',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() !== $mod.Obj.FOnFoo(1);',
|
|
|
+ '$mod.b = $mod.Obj.FOnFoo !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetFoo() !== null;',
|
|
|
+ '$mod.b = $mod.Obj.GetEvents(13) !== null;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -10869,12 +10869,12 @@ begin
|
|
|
'$with1.FOnFoo(1);',
|
|
|
'$with1.FOnFoo(1);',
|
|
|
'$with1.GetFoo()(1);',
|
|
|
- '$mod.b = $with1.FOnFoo == null;',
|
|
|
- '$mod.b = $with1.FOnFoo == null;',
|
|
|
- '$mod.b = $with1.GetFoo() == null;',
|
|
|
- '$mod.b = $with1.FOnFoo != null;',
|
|
|
- '$mod.b = $with1.FOnFoo != null;',
|
|
|
- '$mod.b = $with1.GetFoo() != null;',
|
|
|
+ '$mod.b = $with1.FOnFoo === null;',
|
|
|
+ '$mod.b = $with1.FOnFoo === null;',
|
|
|
+ '$mod.b = $with1.GetFoo() === null;',
|
|
|
+ '$mod.b = $with1.FOnFoo !== null;',
|
|
|
+ '$mod.b = $with1.FOnFoo !== null;',
|
|
|
+ '$mod.b = $with1.GetFoo() !== null;',
|
|
|
'$mod.b = rtl.eqCallback($with1.FOnFoo, $mod.vP);',
|
|
|
'$mod.b = rtl.eqCallback($with1.FOnFoo, $mod.vP);',
|
|
|
'$mod.b = rtl.eqCallback($with1.GetFoo(), $mod.vP);',
|
|
@@ -10890,9 +10890,9 @@ begin
|
|
|
'$mod.b = !rtl.eqCallback($with1.FOnFoo, rtl.createCallback($with1, "DoIt"));',
|
|
|
'$mod.b = !rtl.eqCallback($with1.FOnFoo, rtl.createCallback($with1, "DoIt"));',
|
|
|
'$mod.b = !rtl.eqCallback($with1.GetFoo(), rtl.createCallback($with1, "DoIt"));',
|
|
|
- '$mod.b = $with1.FOnFoo != null;',
|
|
|
- '$mod.b = $with1.FOnFoo != null;',
|
|
|
- '$mod.b = $with1.GetFoo() != null;',
|
|
|
+ '$mod.b = $with1.FOnFoo !== null;',
|
|
|
+ '$mod.b = $with1.FOnFoo !== null;',
|
|
|
+ '$mod.b = $with1.GetFoo() !== null;',
|
|
|
'']));
|
|
|
end;
|
|
|
|
|
@@ -11308,9 +11308,9 @@ begin
|
|
|
LinesToStr([ // $mod.$main
|
|
|
'$mod.p = $mod.p;',
|
|
|
'$mod.p = null;',
|
|
|
- 'if ($mod.p == null) ;',
|
|
|
- 'if (null == $mod.p) ;',
|
|
|
- 'if ($mod.p != null) ;',
|
|
|
+ 'if ($mod.p === null) ;',
|
|
|
+ 'if (null === $mod.p) ;',
|
|
|
+ 'if ($mod.p !== null) ;',
|
|
|
'$mod.p = $mod.v;',
|
|
|
'$mod.p = $mod.Obj;',
|
|
|
'$mod.p = $mod.C;',
|
|
@@ -11808,8 +11808,8 @@ begin
|
|
|
'$mod.Arr[0] = rtl.length($mod.TheArray) - 1;',
|
|
|
'$mod.Arr = $mod.ArrInt;',
|
|
|
'$mod.ArrInt = $mod.Arr;',
|
|
|
- 'if (rtl.length($mod.TheArray) == 0) ;',
|
|
|
- 'if (rtl.length($mod.TheArray) == 0) ;',
|
|
|
+ 'if (rtl.length($mod.TheArray) === 0) ;',
|
|
|
+ 'if (rtl.length($mod.TheArray) === 0) ;',
|
|
|
'if (rtl.length($mod.TheArray) > 0) ;',
|
|
|
'if (rtl.length($mod.TheArray) > 0) ;',
|
|
|
'']));
|
|
@@ -13270,7 +13270,7 @@ begin
|
|
|
' this.y = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return (this.x == b.x) && (this.y == b.y);',
|
|
|
+ ' return (this.x === b.x) && (this.y === b.y);',
|
|
|
' };',
|
|
|
'};',
|
|
|
'$mod.$rtti.$Record("TPoint", {}).addFields("x", rtl.longint, "y", rtl.longint);',
|
|
@@ -13310,7 +13310,7 @@ begin
|
|
|
' this.y = 0;',
|
|
|
' };',
|
|
|
' this.$equal = function (b) {',
|
|
|
- ' return (this.x == b.x) && (this.y == b.y);',
|
|
|
+ ' return (this.x === b.x) && (this.y === b.y);',
|
|
|
' };',
|
|
|
' };',
|
|
|
'};',
|