archives

« Bugzilla Issues Index

#2637 — 19.2.3.5 Function.prototype.toMethod: Call CloneMethod for all built-in function objects


19.2.3.5 Function.prototype.toMethod (newHome [ , methodName ] )

It's possible for user code to detect whether a built-in function is implemented by an ECMAScript function object or by a standard exotic built-in function object, because steps 1b and 1c are only executed for ECMAScript function objects. Step 1 and step 2 should be merged, that means the first condition should read:

> If func is an ECMAScript function object or a standard exotic Built-in function object, then [...]

9.2.13 CloneMethod is even written to support built-in function objects, but only called in 19.2.3.5 step 1 for ECMAScript function objects.


fixed in rev24 editor's draft


fixed in rev24