On Tue, May 13, 2014 at 9:01 PM, Yang Guo <[email protected]> wrote: > Some internal properties are implemented using property callbacks, for > example string.length. Since strings are not Objects, but Values, the extra > checks that commit introduced failed in that particular case. The holder is > String.prototype though. This does not apply to FunctionCallbackInfo, so we > left that as is. I hope this helps.
Yang, isn't that an implementation detail leaking into the API? A user cannot create a getter or setter on a primitive type (I think) so there's never a time when |this| is not an object. -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
