Skip to content

Commit c062b52

Browse files
authored
1 parent 6dce10f commit c062b52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_webstorage.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -572,8 +572,8 @@ static Intercepted StorageSetter(Local<Name> property,
572572
Storage* storage;
573573
ASSIGN_OR_RETURN_UNWRAP(&storage, info.This(), Intercepted::kNo);
574574

575-
if (storage->Store(property, value)) {
576-
info.GetReturnValue().Set(value);
575+
if (!storage->Store(property, value)) {
576+
info.GetReturnValue().SetFalse();
577577
}
578578

579579
return Intercepted::kYes;

0 commit comments

Comments
 (0)