vm: fix property descriptors of sandbox properties · nodejs/node@37a8a54 · GitHub
Skip to content

Commit 37a8a54

Browse files
domenicrvagg
authored andcommitted
vm: fix property descriptors of sandbox properties
The GlobalPropertyQueryCallback was changed in 2010 to return an integer instead of a boolean: https://groups.google.com/forum/#!topic/v8-users/OOjHJrix-cU This integer communicates the property descriptors of the property, instead of just its presence or absence. However, the original contextify code was probably written before this change, and it was not updated when porting to Node.js. Credit to @smikes for the test and the original PR of #885. Fixes: #864 Fixes: #885 PR-URL: #1773 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent d4ee390 commit 37a8a54

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

src/node_contextify.cc

Lines changed: 10 additions & 4 deletions
Lines changed: 25 additions & 0 deletions

0 commit comments

Comments
 (0)