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

Promise function should use ES5 functions rather than fat arrows (IE browser support) #427

Merged
merged 2 commits into from
Jan 8, 2019

Conversation

rogchap
Copy link
Contributor

@rogchap rogchap commented Jan 3, 2019

Arrow functions are not compatible with IE11, this fix allows the generated JS to be used directly in the browser without going through a seperate transpiler (Babel)

@rogchap
Copy link
Contributor Author

rogchap commented Jan 8, 2019

@stanley-cheung Keen to get your thoughts on this one; You back from the holidays?

@stanley-cheung
Copy link
Collaborator

There are other places we are spitting out arrow functions but those are for TypeScript output so we should be fine there. This is the only place for the normal JS output.

Copy link
Collaborator

@stanley-cheung stanley-cheung left a comment

Choose a reason for hiding this comment

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

LGTM

@stanley-cheung stanley-cheung merged commit c253657 into grpc:master Jan 8, 2019
@rogchap
Copy link
Contributor Author

rogchap commented Jan 8, 2019

Thanks @stanley-cheung

loyalpartner pushed a commit to loyalpartner/grpc-web that referenced this pull request Sep 4, 2020
…oding (grpc#427)

* Set Content-Length header in NodeHTTPTransport to disable chunked encoding

* Only disable chunked http encoding if we are not using streams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants