Browse Source

pastojs: fixed wrong setting rtl.TObjectDestroy

mattias 4 years ago
parent
commit
2e409dda39
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/packages/pastojs/src/fppas2js.pp

+ 1 - 0
compiler/packages/pastojs/src/fppas2js.pp

@@ -15533,6 +15533,7 @@ begin
   else if El.IsExternal then
     exit(ConvertExtClassType(El,AContext));
 
+  IsTObject:=false;
   if El.CustomData is TPas2JSClassScope then
     begin
     Scope:=TPas2JSClassScope(El.CustomData);