Closed mgaudet closed 2 years ago
Isn't that exactly the definition of "function object"? https://tc39.es/ecma262/#function-object
Hah. You're right. I didn't realize that. I was mislead by the IsCallable check, so I had assumed callable != function object.
Just a nitpick in the spec text: "WrappedFunctionCreate ( callerRealm: a Realm Record, Target: a function object, )"
The second argument isn't a function, but is any callable, based on the guard of GetWrappedValue.