mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
src: use correct way to signal interceptor error
PR-URL: https://github.com/nodejs/node/pull/54418
Refs: e4f61de14f/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:
parent
6dce10ff77
commit
c062b5242a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user