using
being too strict to throw on Function type
#54951
Labels
Milestone
using
being too strict to throw on Function type
#54951
Bug Report
Currently the polyfilled implementation for
using
performs the following check:In the spec, the value used with
using
needs to be an "Object type", but we know in JavaScript an Object type can havetypeof
value other than"object"
, for example, a function hastypeof value === "function"
while also being a valid JavaScript Object.The implementation should use the check similar to
underscore.js
'sisObject()
check:⏯ Playground Link
Playground link with relevant code
The text was updated successfully, but these errors were encountered: