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

fix: #8 window is undefined error #106

Merged
merged 5 commits into from Jul 27, 2022
Merged

fix: #8 window is undefined error #106

merged 5 commits into from Jul 27, 2022

Conversation

alias-rahil
Copy link
Contributor

@alias-rahil alias-rahil commented Jun 1, 2022

Closes #8. Fixes the issue by explicitly checking if window is defined.

NOTE: This PR is similar to the old repo PR protocolbuffers/protobuf#9156 by @MarnixBouhuis

@google-cla
Copy link

google-cla bot commented Jun 1, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

generator/js_generator.cc Outdated Show resolved Hide resolved
generator/js_generator.cc Outdated Show resolved Hide resolved
generator/js_generator.cc Outdated Show resolved Hide resolved
@dibenede dibenede merged commit c3db2b5 into protocolbuffers:main Jul 27, 2022
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.

The generated commonjs *_pb.js files don't work in Node.js environment
3 participants