caizhenkun11

Results 4 comments of caizhenkun11

JSEngine::~JSEngine() { if (Inspector) { delete Inspector; Inspector = nullptr; } Inspector 是有销毁, 但是下次调试时就无法执行 void JSEngine::DestroyInspector() { v8::Isolate* Isolate = MainIsolate; v8::Isolate::Scope IsolateScope(Isolate); v8::HandleScope HandleScope(Isolate); v8::Local Context = ResultInfo.Context.Get(Isolate); v8::Context::Scope...

在销毁时,调用 v8::Isolate* Isolate = MainIsolate; v8::Isolate::Scope IsolateScope(Isolate); v8::HandleScope HandleScope(Isolate); v8::Localv8::Context Context = ResultInfo.Context.Get(Isolate); v8::Context::Scope ContextScope(Context); 测试是可以正常的, 综合代码:就是在销毁时,调用void JSEngine::DestroyInspector() 从接口调用准则也应该是这两者相互呼应: 创建销毁

我已经提交了pr了, 你看看,应该有收到pr请求

你可以在C++的~JSEngine 直接调用DestroyInspector的接口, 这样也行