diff --git a/src/node_webstorage.cc b/src/node_webstorage.cc index 15d142e3d8f6e6..ee6a00a9ec2324 100644 --- a/src/node_webstorage.cc +++ b/src/node_webstorage.cc @@ -572,8 +572,8 @@ static Intercepted StorageSetter(Local 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;