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
However, if there is no constructor present in the IDL, then the constructor exists but will always throw. Hence, I think the generator could optionally write:
declare var
for WebIDLinterfaces
without constructors currently omit thenew ()
definition:However, this prevents expressions like
mydevice instanceof GPUDevice
from being valid.A
new ()
method should be added to the generated var.Upstream, TypeScript's built-in types would do this:
However, if there is no constructor present in the IDL, then the constructor exists but will always throw. Hence, I think the generator could optionally write:
to be more precise.
The text was updated successfully, but these errors were encountered: