Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw TypeError if non-constructor interfaces are called as constructor #32

Open
bwrrp opened this issue Jun 21, 2017 · 0 comments
Open

Comments

@bwrrp
Copy link
Owner

bwrrp commented Jun 21, 2017

Some interfaces such as Element do not have a constructor according to the DOM standard. We could use an internal token argument to check if calls are coming from inside the library and throw a TypeError otherwise to match the correct behavior.

@bwrrp bwrrp mentioned this issue Jun 21, 2017
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant