archives

« Bugzilla Issues Index

#1422 — 8.1.6.2: [[Construct]] may also return non-object types


Per table 9 in 8.1.6.2, [[Construct]] always returns Objects, but with Proxies and @@create this may no longer be the case. Therefore the signature should be changed to "(a List of any) -> any".

NB: [[Call]] still allows Reference return values for host objects, remove that sentence?

NB: Table 9 summary is not accurate, [[Construct]] is not required for objects to be called as functions.


Fixed in rev15 editor's draft.

WRT [[Construct]] I modified the ordinary definitions and Proxy to enforce the invariant that [[Construct]] always returns Type object (or an abrupt completion)


resolved in rev 15, May 14, 2013 draft