We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
protobuf.js version: 6.6.1
I have the following ProtoBuf message:
message Quaternion { float x = 1; float y = 2; float z = 3; float w = 4; }
If i use on this message
pbjs -t static-module -w commonjs
the generated class has a property 'w', but all methods replaced the 'w' with 'writer' as you can see in the following example:
Quaternion.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.x !== undefined && message.hasOwnProperty("x")) writer.uint32(/* id 1, wireType 5 =*/13).float(message.x); if (message.y !== undefined && message.hasOwnProperty("y")) writer.uint32(/* id 2, wireType 5 =*/21).float(message.y); if (message.z !== undefined && message.hasOwnProperty("z")) writer.uint32(/* id 3, wireType 5 =*/29).float(message.z); if (message.writer !== undefined && message.hasOwnProperty("writer")) writer.uint32(/* id 4, wireType 5 =*/37).float(message.writer); return writer; };
The text was updated successfully, but these errors were encountered:
Fixed: Properly replace short vars when beautifying static code, see #…
3aea1bf
…663
Feel free to reopen if there are still any issues!
Sorry, something went wrong.
Thank you for the quick fix. Works like a charm!
No branches or pull requests
protobuf.js version: 6.6.1
I have the following ProtoBuf message:
If i use on this message
the generated class has a property 'w', but all methods replaced the 'w' with 'writer' as you can see in the following example:
The text was updated successfully, but these errors were encountered: