Re: Upgrading from Spidermonkey 1.8.5 to 45. How to get property name in getters/setters now they are JSNatives and tiny IDs have been removed?
"Anthony \"paraboul\" Catel" <[email protected]> Mon, 5 Jun 2017 12:06:14 +0200
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <CAPcvXhOsXPoVJta7SQCiRyomsEDkYBSuio5FutVJqEd01C_jGw@mail.gmail.com> |
I wrote a "compatibility class" some time ago in order to handle tinyid when they vanished. Macro : https://github.com/nidium/Nidium/blob/6ba6cffc94dd6441e7fb7558b07849 d9bc93d641/src/Binding/JSExposer.h#L135-L142 Class : https://github.com/nidium/Nidium/blob/6ba6cffc94dd6441e7fb7558b07849 d9bc93d641/src/Binding/JSExposer.h#L819-L884 However, we eventually get rid of this and created "ClassMapper" : https://github.com/nidium/Nidium/blob/master/src/Binding/ClassMapper.h Usage : https://github.com/nidium/Nidium/wiki/ClassMapper 2017-06-05 11:53 GMT+02:00 Miles <[email protected]>: > I'll stop looking for a way to get the property name now then! :-) > In that case I think I will try to do something clever with macros to > automatically write stub functions for the getters/setters so I can still > have a single function and reuse as much as I can. > Many thanks for the replies. > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine > -- A.