archives

« Bugzilla Issues Index

#2965 — 7.3.16 GetPrototypeFromConstructor, 22.1.3.* Array.prototype.*: Use BoundFunctionTargetRealm to retrieve [[Realm]] of bound functions?


7.3.16 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
22.1.3.1 Array.prototype.concat ( ...arguments )
22.1.3.7 Array.prototype.filter ( callbackfn [ , thisArg ] )
22.1.3.15 Array.prototype.map ( callbackfn [ , thisArg ] )
22.1.3.22 Array.prototype.slice (start, end)
22.1.3.25 Array.prototype.splice (start, deleteCount [ , ...items ] )

These functions / abstract operations currently use [[Realm]] to retrieve the Realm record. That means only ECMAScript and built-in function objects are handled. Does it make sense to extend the checks to include bound functions, now that BoundFunctionTargetRealm is available?


Fixed in rev26 editor's draft.

Replaced BoundFunctionTargetRealm with a more general getFrunctionRealm that works will all callables.


Fixed in Rev26