-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support constructor function in hasType #10
Comments
Assertive has thus far dodged problems like multiple global objects by just supporting the language's basic types. The multiple globals situation shows up in browsers with multiple window objects, each being their own world that has different constructor functions for things like I am not opposed to getting this feature, but but I think it needs design work, because instanceof doesn't define type equality – as the current function name decrees – but a less-than-or-equals comparison on the directed acyclic type graph. I e: An assertive |
Personally I'd actually expect Node itself implements |
There apparently are cases in node demonstrated by above link where one
Taking your reasoning further than I think you want, In retrospect, it might have been wise to make The |
It's not terribly hard writing |
Maybe I was missing something:
Running it gives me:
The text was updated successfully, but these errors were encountered: