Re: [heycam/webidl] Only install @@toStringTag on the prototype (#357)

I agree with the (a), (b), (c) choices you lay out being the obvious choices.  I also agree that (c) is not a great solution for all sorts of performance/memory reasons.

I strongly suspect (gut feeling, no data) that there is no performance-critical Object.prototype.toString usage on IDL objects.

Having data on how often people end up doing Object.prototype.toString with an IDL interface prototype as `this` may be helpful, yes.  I agree that we should pre-commit to a threshold if we decided to use that data as the deciding factor.  I don't think I'm in a position to unilaterally set this threshold, not least because I obviously can't speak for Apple and Microsoft, and am not sure I can speak for Mozilla on my own in this case.  @smaug---- do you have any thoughts?

I would also be very interested in data on what web developers expect/want the behavior to be, but I'm not sure how to gather such data...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/357#issuecomment-298961174

Received on Wednesday, 3 May 2017 16:20:22 UTC