src: fix implementation of `PropertySetterCallback` · nodejs/node@9bde9b2 · GitHub
Skip to content

Commit 9bde9b2

Browse files
isheludkoaduh95
authored andcommitted
src: fix implementation of PropertySetterCallback
V8 does not allow returning arbitrary values from the interceptor setter callbacks, only a boolean return value is allowed. Since default return value is `true`, it's not even necessary to set the return value on a successful path. Refs: https://crbug.com/348660658 PR-URL: #53576 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
1 parent c68d873 commit 9bde9b2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/node_contextify.cc

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)