mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
src: use correct way to signal interceptor error
PR-URL: https://github.com/nodejs/node/pull/54418 Refs: https://github.com/nodejs/node/blob/e4f61de14f8cfb83f1ce0ad1597b86278cd5f5f1/deps/v8/include/v8-function-callback.h#L398-L408 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Cheng Zhao <zcbenz@gmail.com>
This commit is contained in:
1 parent
6dce10ff77
commit
c062b5242a
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user