Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Represent empty name as "" to match RPC v1 #486

Merged
merged 1 commit into from
Feb 5, 2019
Merged

Conversation

tbfleming
Copy link
Contributor

No description provided.

Copy link
Contributor

@c0d3ster c0d3ster left a comment

Choose a reason for hiding this comment

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

Only one comment

@@ -877,7 +874,7 @@ export function createInitialTypes(): Map<string, Type> {
}
},
deserialize(buffer: SerialBuffer, state?: SerializerState) {
if (state.options.bytesAsUint8Array) {
if (state && state.options.bytesAsUint8Array) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a possibility that state could have an options object without a bytesAsUint8Array? If ever that could happen, we should add a check for state.options as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

bytesAsUint8Array is a flag. If it's missing then this treats it as false.

@tbfleming tbfleming merged commit c04336f into develop Feb 5, 2019
@gleehokie gleehokie deleted the empty-name branch June 24, 2020 20:07
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