mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Fix use after free
This commit is contained in:
@@ -1067,8 +1067,6 @@ extern "C" napi_status napi_remove_wrap(napi_env env, napi_value js_object,
|
||||
}
|
||||
|
||||
external->m_value = nullptr;
|
||||
|
||||
ref->finalizer = Bun::NapiFinalizer {};
|
||||
globalObject->napiWraps()->remove(value.asCell());
|
||||
|
||||
// don't delete the ref: if weak, it'll delete itself when the JS object is deleted;
|
||||
|
||||
Reference in New Issue
Block a user