2
0
Эх сурвалжийг харах

pastojs: do not write rtl.run for platform module

mattias 3 жил өмнө
parent
commit
473db46e08

+ 1 - 1
packages/pastojs/src/pas2jscompiler.pp

@@ -2805,7 +2805,7 @@ begin
     FResources.DoneUnit(aFile.isMainFile);
     EmitJavaScript(aFile,aFileWriter);
 
-    if aFile.IsMainFile and (TargetPlatform in [PlatformNodeJS,PlatformModule]) then
+    if aFile.IsMainFile and (TargetPlatform=PlatformNodeJS) then
       aFileWriter.WriteFile('rtl.run();'+LineEnding,aFile.UnitFilename);
 
     if isSingleFile or aFile.isMainFile then