@nativescript/canvas 2.0.0-webgpu.12 → 2.0.0-webgpu.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1159,6 +1159,10 @@ void CanvasJSIModule::ReadFile(const v8::FunctionCallbackInfo<v8::Value> &args)
1159
1159
  [](int fd, int events,
1160
1160
  void *data) {
1161
1161
 
1162
+ if(data == 0){
1163
+ return 0;
1164
+ }
1165
+
1162
1166
  auto cb = static_cast<JSIReadFileCallback *>(data);
1163
1167
  bool done;
1164
1168
  read(fd, &done,
@@ -1228,7 +1232,6 @@ void CanvasJSIModule::ReadFile(const v8::FunctionCallbackInfo<v8::Value> &args)
1228
1232
  }
1229
1233
  return 0;
1230
1234
  }
1231
- LogToConsole(ConvertFromV8String(isolate, stackV8Str));
1232
1235
 
1233
1236
  }
1234
1237
  }