Browse Source

* Allow to compile in mode nodejs (workers)

Michael Van Canneyt 10 months ago
parent
commit
3b3ddc7fca
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/zenfs/src/libzenfs.pas

+ 3 - 0
packages/zenfs/src/libzenfs.pas

@@ -413,7 +413,10 @@ Type
     class function With_ (code : String; Path, SysCall : String) : TZenFSErrnoError external name 'With';
     errno : integer;
     code : string;
+    {$IFNDEF NodeJS}
+    // Already in TJSError for nodejs
     stack : string;
+    {$ENDIF}
     function toJSON : TJSObject;
     function toString : string; reintroduce;
     function bufferSize : integer;