GNOME Bugzilla – Bug 700337
ByteArray: don't use a resolve function
Last modified: 2013-05-14 20:08:19 UTC
This bit me after I replaced all priv_from_js with JS_GetPrivate
Created attachment 244240 [details] [review] ByteArray: don't use a resolve function It would do nothing anyway, because it was doing priv_from_js with the wrong arguments, seeing always NULL and returning TRUE. We don't need to actually define properties, we can just hook get and set. Also, we can prevent setting the JS stored value by storing undefined in the setter.
Review of attachment 244240 [details] [review]: OK.
Attachment 244240 [details] pushed as b1ed57a - ByteArray: don't use a resolve function