Open ajvincent opened 5 years ago
This has to account for objects implementing multiple interfaces.
Note: argument checking may be impractical if the argument is from a different object graph than the function to call, and if the WebIDL is complex (a, a.b, and a.b.c must all meet different interfaces, for example).
Suppose we have a set of WebIDL definitions and a way to map them to constructors. Then we can do several checks: