archives

« Bugzilla Issues Index

#4224 — 26.2.2.1 Proxy.revocable: "revoke" as data instead of method property?


26.2.2.1 Proxy.revocable ( target, handler )

Step 7.

The revoker function is currently installed as a method property, even though it's not really a method but simply a function valued property. (For example it does not have a `this` binding.)

I wonder if it makes sense to replace CreateMethodProperty with CreateDataProperty.


fixed in rev378 editor's draft

I'm kind of on the fence on this, but making it enumerable can be rationalized as being consistent with what you would get if Proxy.revocable was self-hosted and used an Object Literal to create the result object.


In Rev37