06a00b74e8
* fix: initialize asar support in worker threads Use `ObjectWrap` instead of gin's Wrap in `electron_api_asar.cc` because gin isn't fully initialized (and apparently not possible to initialize without ruining the isolate configuration and array buffer allocator) in worker threads. In the worker thread call `setupAsarSupport` just as we do for the main process. * Update lib/asar/fs-wrapper.ts Co-authored-by: Darshan Sen <raisinten@gmail.com> * Update patches/node/worker_thread_add_asar_support.patch Co-authored-by: Darshan Sen <raisinten@gmail.com> * Add a test Co-authored-by: Darshan Sen <raisinten@gmail.com> Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> |
||
---|---|---|
.. | ||
api.mojom | ||
BUILD.gn | ||
electron_api_asar.cc | ||
electron_api_clipboard.cc | ||
electron_api_clipboard.h | ||
electron_api_clipboard_mac.mm | ||
electron_api_command_line.cc | ||
electron_api_environment.cc | ||
electron_api_key_weak_map.h | ||
electron_api_native_image.cc | ||
electron_api_native_image.h | ||
electron_api_native_image_mac.mm | ||
electron_api_native_image_win.cc | ||
electron_api_shell.cc | ||
electron_api_testing.cc | ||
electron_api_v8_util.cc | ||
electron_bindings.cc | ||
electron_bindings.h | ||
features.cc | ||
object_life_monitor.cc | ||
object_life_monitor.h |