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

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