nan icon indicating copy to clipboard operation
nan copied to clipboard

Make symbols work with NAN_PROPERTY_GETTER

Open ssttevee opened this issue 7 years ago • 2 comments

Would it be possible to add a macro to have GenericNamedPropertyGetterCallback redirect to NamedPropertyGetterCallback so it doesn't throw an error when looking up a property with a symbol?

nodejs/node#15000

ssttevee avatar Aug 24 '17 18:08 ssttevee

Without looking into it further, I would guess not. For legacy reasons, NAN does not support Symbols.

On August 24, 2017 9:16:15 PM GMT+03:00, Steve Lam [email protected] wrote:

Would it be possible to add a macro to have GenericNamedPropertyGetterCallback redirect to NamedPropertyGetterCallback so it doesn't throw an error when looking up a property with a symbol?

nodejs/node#15000

kkoopa avatar Aug 24 '17 18:08 kkoopa

We could once we drop support for node.js < 4, ref #676.

bnoordhuis avatar Aug 24 '17 20:08 bnoordhuis