JS: Fixed `ReferenceError: window is not defined` when getting the global object (#9156)
JS: Fixed `ReferenceError: window is not defined` when getting the global object (#9156)


protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript,protocolbuffers/protobuf-javascript