Skip to content

Commit

Permalink
src: use correct way to signal interceptor error
Browse files Browse the repository at this point in the history
  • Loading branch information
targos authored and RafaelGSS committed Aug 25, 2024
1 parent fe4a92a commit 88d789a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_webstorage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,8 @@ static Intercepted StorageSetter(Local<Name> property,
Storage* storage;
ASSIGN_OR_RETURN_UNWRAP(&storage, info.This(), Intercepted::kNo);

if (storage->Store(property, value)) {
info.GetReturnValue().Set(value);
if (!storage->Store(property, value)) {
info.GetReturnValue().SetFalse();
}

return Intercepted::kYes;
Expand Down

0 comments on commit 88d789a

Please sign in to comment.