Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic when defining function during shutdown
This fixes a race condition that can happen when the VM is shutting down where our call to `napi::create_function` succeeds but then our subsequent call to `napi::add_finalizer` fails, causing a panic. We need to let this specific failure mode slide to avoid crashing.
- Loading branch information