mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-28 13:38:10 +08:00
fix(jsc): fix jscctx finalize crash (#4154)
This commit is contained in:
@@ -66,13 +66,13 @@ JSCCtx::JSCCtx(JSContextGroupRef group, std::weak_ptr<VM> vm): vm_(vm) {
|
||||
}
|
||||
|
||||
JSCCtx::~JSCCtx() {
|
||||
JSGlobalContextRelease(context_);
|
||||
for (auto& [key, item] : constructor_data_holder_) {
|
||||
item->prototype = nullptr;
|
||||
if (global_constructor_data_mgr) {
|
||||
global_constructor_data_mgr->ClearConstructorDataPtr(item.get());
|
||||
}
|
||||
}
|
||||
JSGlobalContextRelease(context_);
|
||||
}
|
||||
|
||||
JSValueRef InvokeJsCallback(JSContextRef ctx,
|
||||
|
||||
Reference in New Issue
Block a user