History

Fix V8 scope performance issue on libnode22

ksuprynowicz committed 11 months ago

Commit a9bd0781 parent 4aad6b218 files · +298 −349Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptProgramV8Wrapper.cpp (1 of 18 files). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptProgramV8Wrapper.cpp+1−2
@@ -38,8 +38,7 @@ bool ScriptProgramV8Wrapper::compile() { · 37 unmodified lines
3838 return true;
3939 }
4040 auto isolate = _engine->getIsolate();
41− v8::Locker locker(isolate);
42− v8::Isolate::Scope isolateScope(isolate);
41+ Q_ASSERT(isolate->IsCurrent());
4342 v8::HandleScope handleScope(isolate);
4443 auto context = _engine->getContext();
4544 v8::Context::Scope contextScope(context);