Skip to content

Commit

Permalink
chore(shared): Remove left-over debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Mar 18, 2024
1 parent 48bdc3c commit dd67e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/V8ResourceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,12 @@ v8::Local<v8::Object> V8ResourceImpl::GetOrCreateResourceObject(alt::IResource*
{
// If already created return instance
if(resourceObjects.count(resource) != 0) return resourceObjects.at(resource).Get(isolate);

// Create instance
v8::Local<v8::Object> obj = v8Resource.CreateInstance(GetContext());
V8Helpers::SetObjectClass(isolate, obj, V8Class::ObjectClass::RESOURCE);
Log::Info << "Create resource " << (void*)resource << Log::Endl;
obj->SetInternalField(static_cast<int>(V8Class::InternalFields::RESOURCE), v8::External::New(isolate, resource));

resourceObjects.insert({ resource, V8Helpers::CPersistent<v8::Object>(isolate, obj) });
return obj;
}
Expand Down

0 comments on commit dd67e5b

Please sign in to comment.