W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2016

[Bug 29383] New: Need a way to define toJSON, valueOf, @@toPrimitive

From: <bugzilla@jessica.w3.org>
Date: Wed, 20 Jan 2016 13:22:07 +0000
To: public-script-coord@w3.org
Message-ID: <bug-29383-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29383

            Bug ID: 29383
           Summary: Need a way to define toJSON, valueOf, @@toPrimitive
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
          Assignee: cam@mcc.id.au
          Reporter: annevk@annevk.nl
        QA Contact: public-webapps-bugzilla@w3.org
                CC: bobbyholley@gmail.com, mike@w3.org,
                    public-script-coord@w3.org
        Depends on: 27361, 29183
  Target Milestone: ---

We want to get rid of [Unforgeable] for Location (the only interface to use
that annotation as far as I know), but we do not want to lose out on basically
nullifying these properties.

As we change this setup, we should also consider making them no longer
enumerable as per bug 27361.

This subsumes bug 29183 in a way.

Perhaps a good general solution would be to allow specifications to define data
properties. This has been requested now and then, perhaps now is the time.

https://github.com/annevk/html-cross-origin-objects has some additional context
as does bug 29376 comment 7.


Referenced Bugs:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27361
[Bug 27361] [Unforgeable] and "[[Enumerable]]: true"
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29183
[Bug 29183] Objects that implement an [Unforgeable] interface should have a
non-configurable @@toPrimitive method
-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Wednesday, 20 January 2016 13:22:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC