Skip to content

Don't use process when not available #2277

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

Merged
merged 3 commits into from
Oct 22, 2019
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Oct 18, 2019

This breaks a compile test I am doing with google-closure-compiler

This breaks a compile test I am doing with the google-clousre-compiler
@@ -675,7 +675,8 @@ function convertStreamToken(token: ProtoByteString): string {
if (token instanceof Uint8Array) {
// TODO(b/78771403): Convert tokens to strings during deserialization
assert(
process.env.USE_MOCK_PERSISTENCE === 'YES',
typeof process !== 'undefined' &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Could be a function in SimpleDb? Something like isMockPersistence or isUsingMockPersistence?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good idea.

Copy link
Contributor

@wilhuff wilhuff left a comment

Choose a reason for hiding this comment

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

LGTM

@wilhuff wilhuff assigned schmidt-sebastian and unassigned wilhuff Oct 22, 2019
@schmidt-sebastian schmidt-sebastian merged commit d5eacb6 into master Oct 22, 2019
@Feiyang1 Feiyang1 added this to the 7.2.2 milestone Oct 29, 2019
@firebase firebase locked and limited conversation to collaborators Nov 22, 2019
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/process branch February 28, 2020 23:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants