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

Assign to self #52

Merged
merged 5 commits into from
Dec 29, 2014
Merged

Assign to self #52

merged 5 commits into from
Dec 29, 2014

Conversation

josh
Copy link
Contributor

@josh josh commented Dec 29, 2014

isomorphic-fetch will need to be changed to stub global.self instead of global.window.

https://github.com/matthew-andrews/isomorphic-fetch/blob/master/server.js

Changes #48.
Obsoletes #49, #50.

cc @dgraham @matthew-andrews @knowledgecode

@matthew-andrews
Copy link
Contributor

If that works for you that works for me :-).

Ready when you are…

matthew-andrews/isomorphic-fetch#3

@@ -17,6 +17,7 @@
"eqnull": true,
"browser": true,
"globals": {
"Promise": false
"Promise": false,
"self": false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make more sense to switch the worker option on rather than defining self as a global.

(Similarly but potentially less importantly you could choose to switch on esnext instead of defining Promise as a global — but that defines a larger amount of stuff that you might not want defined)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, I didn't realize there was a worker option.

I'll give exnext a try too. Last time I think I was on an older jshint that didn't define Promise yet.

@knowledgecode
Copy link
Contributor

👍

@dgraham
Copy link
Contributor

dgraham commented Dec 29, 2014

:shipit:

josh added a commit that referenced this pull request Dec 29, 2014
@josh josh merged commit 8beeeee into master Dec 29, 2014
@josh josh deleted the self branch December 29, 2014 18:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants