You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on webpack/webpack-cli#240 the need for validating a Promise came up. It looks like the only way to use instanceof to validate this constructor type is by augmenting the CONSTRUCTORS manually (similar to adding a custom constructor).
It seems like the Promise constructor could be supported in a similar manner as Buffer.
I've opened a PR proposing this update #51 – looking forward to the discussion, thanks!
The text was updated successfully, but these errors were encountered:
While working on webpack/webpack-cli#240 the need for validating a
Promise
came up. It looks like the only way to useinstanceof
to validate this constructor type is by augmenting theCONSTRUCTORS
manually (similar to adding a custom constructor).It seems like the
Promise
constructor could be supported in a similar manner asBuffer
.I've opened a PR proposing this update #51 – looking forward to the discussion, thanks!
The text was updated successfully, but these errors were encountered: