Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

add support for environments with both window and global #211

Merged
merged 1 commit into from
Sep 13, 2014
Merged

add support for environments with both window and global #211

merged 1 commit into from
Sep 13, 2014

Conversation

stevenvachon
Copy link
Contributor

Browsers will always have window and possibly global with node-webkit (or similar).
Node will never have window but always have global.

Browsers will always have `window` and possibly `global` with node-webkit.
Node will never have `window` but always have `global`.
@stevenvachon stevenvachon changed the title add support for node-webkit add support for environments with both window and global Sep 13, 2014
guybedford added a commit that referenced this pull request Sep 13, 2014
add support for environments with both window and global
@guybedford guybedford merged commit 4437204 into ModuleLoader:master Sep 13, 2014
@guybedford
Copy link
Member

Note we actually needed d76ec80 for web worker support as well. That is quite complicated - it is quite bad for node webkit to be breaking existing global detection conventions, but happy to support it.

@stevenvachon
Copy link
Contributor Author

How better could they have done it? They literally merged Node and a browser, so we end up with both to support most libraries.

@stevenvachon stevenvachon deleted the patch-1 branch September 13, 2014 18:19
@guybedford
Copy link
Member

Actually we should use that!

@stevenvachon
Copy link
Contributor Author

Maybe you could check out google/traceur-compiler#1340 as it pertains to this. I ran into issues making the changes myself.

@guybedford
Copy link
Member

I can't guarantee the time input either right now unfortunately.

Perhaps in the mean time an alternative would be to precompile the Traceur modules from ES6 into System.register. Then you only need to focus on Traceur runtime support.

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.

2 participants