Closed Bug 637201 Opened 14 years ago Closed 12 years ago

optional prototype argument to Proxy.createFunction

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dherman, Unassigned)

References

()

Details

Proxy.createFunction should accept an additional optional argument specifying the prototype of the function proxy. If the argument is not provided or is undefined, it should default to the original Function.prototype as it currently does. Proxy.createFunction should also test the argument to ensure that it is an instanceof Function and throw if not. Initial spec at the attached URL. Discussion here: https://mail.mozilla.org/pipermail/es-discuss/2011-February/012874.html It would be good to get this implemented as soon after Fx4 as possible, so we don't have too long a period of a public browser implementing Proxy without the extended API. We should discuss this API at the next TC39 face-to-face so it can get agreed to ASAP, but TomVC likes the idea so it looks promising. Dave
No longer blocks: harmony:proxy
Marking this bug as invalid since Proxy.createFunction is not relevant in the direct proxies design. Feel free to change the status if I'm mistaken.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.