Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Sep 5, 2024
1 parent d7f7c11 commit 170a9ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node_webstorage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ using v8::PropertyDescriptor;
using v8::PropertyHandlerFlags;
using v8::String;
using v8::Uint32;
using v8::Undefined;
using v8::Value;

#define THROW_SQLITE_ERROR(env, r) \
Expand Down Expand Up @@ -559,6 +560,8 @@ static Intercepted StorageGetter(Local<Name> property,

if (storage->Load(property).ToLocal(&result) && !result->IsNull()) {
info.GetReturnValue().Set(result);
} else {
info.GetReturnValue().Set(Undefined(info.GetIsolate()));
}

return Intercepted::kYes;
Expand Down

0 comments on commit 170a9ae

Please sign in to comment.