From dd67e5ba50d956760c5d72e11d2253c6b4ed6270 Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Mon, 18 Mar 2024 20:32:04 +0100 Subject: [PATCH] chore(shared): Remove left-over debug log --- shared/V8ResourceImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/V8ResourceImpl.cpp b/shared/V8ResourceImpl.cpp index e5fb5732..56817c11 100644 --- a/shared/V8ResourceImpl.cpp +++ b/shared/V8ResourceImpl.cpp @@ -536,11 +536,12 @@ v8::Local V8ResourceImpl::GetOrCreateResourceObject(alt::IResource* { // If already created return instance if(resourceObjects.count(resource) != 0) return resourceObjects.at(resource).Get(isolate); + // Create instance v8::Local obj = v8Resource.CreateInstance(GetContext()); V8Helpers::SetObjectClass(isolate, obj, V8Class::ObjectClass::RESOURCE); - Log::Info << "Create resource " << (void*)resource << Log::Endl; obj->SetInternalField(static_cast(V8Class::InternalFields::RESOURCE), v8::External::New(isolate, resource)); + resourceObjects.insert({ resource, V8Helpers::CPersistent(isolate, obj) }); return obj; }