This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22866 - remove Object.prototype.toString override and use ES6 @@toStringTag instead
Summary: remove Object.prototype.toString override and use ES6 @@toStringTag instead
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-03 05:07 UTC by Cameron McCormack
Modified: 2014-10-01 19:00 UTC (History)
4 users (show)

See Also:


Attachments

Description Cameron McCormack 2013-08-03 05:07:44 UTC
With ES6 we can get rid of the overridden Object.prototype.toString function and define @@toStringTag properties on objects to get the same effect.  http://www.w3.org/mid/CAJ8+Gogzsgr4Quw-SVvKwJX7y5LsaeSG+fWL8DHzLrvaCfrj=Q@mail.gmail.com describes the solution.