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

`pbjs` cannot parse negative numbers #499

Closed
endel opened this Issue Nov 29, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@endel
Contributor

endel commented Nov 29, 2016

Hey. Is this an expected behavior?

$ pbjs myfile.proto
/usr/local/lib/node_modules/protobufjs/cli/pbjs.js:74
            throw err;
            ^

Error: illegal id '-1' (line 76)

myfile.proto

enum Something {
	VALUE = -1;
}

I'm using the last v6.0.0. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment