-
Notifications
You must be signed in to change notification settings - Fork 764
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
Allow GrpcWebStreamParser to accept Uint8Array #734
Conversation
var pos = 0; | ||
|
||
if (input instanceof Uint8Array || input instanceof Array) { | ||
inputBytes = input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing semicolon. doesn't pass closure lint checks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
if (input instanceof Uint8Array || input instanceof Array) { | ||
inputBytes = input | ||
} else { | ||
inputBytes = new Uint8Array(input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: missing semicolon. doesn't pass closure lint checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
* @throws {!Error} Throws an error message if the input is invalid. | ||
* @override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry another issue: apparently you need @override
here because now the spec differs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@stanley-cheung do you think you can merge this in and release? |
Thanks, all internal tests passed. |
Solves the following: #710
Suggested by: #683 (comment)