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

Use typeof to check for Proxy support #42

Merged
merged 1 commit into from
May 2, 2018
Merged

Use typeof to check for Proxy support #42

merged 1 commit into from
May 2, 2018

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented May 2, 2018

You can't do Proxy != null because if Proxy is not defined it will
cause a ReferenceError. typeof is the correct way to test for a
global.

This also removes the flawed warning test, which depends on nothing else
having accessed the can namespace before the test runs.

You can't do `Proxy != null` because if Proxy is not defined it will
cause a ReferenceError. `typeof` is the correct way to test for a
global.

This also removes the flawed warning test, which depends on nothing else
having accessed the can namespace before the test runs.
@matthewp matthewp merged commit d518a25 into master May 2, 2018
@matthewp matthewp deleted the flawed branch May 2, 2018 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant