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 Aug 24, 2024
1 parent 6dce10f commit c062b52
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 c062b52

Please sign in to comment.