JS compiler: List of keywords incorrect
The JS compiler's list of keywords, kKeyword, is actually a list of Java keywords. (it's missing async, await, has transient when it shouldn't, etc.)
Relevant code: https://github.com/protocolbuffers/protobuf/blob/94a1819c7ae8509ab6ad37d867d3ea60a5809aaa/src/google/protobuf/compiler/js/js_generator.cc#L62-L68
Could you help send a fix?
So I did some research, and it turns out ES1-3 reserves the extra keywords on that list, so it's not just a list of Java keywords. However, the list does exclude true, as well as newer keywords (and typescript keywords).
We should tidy up the list -- adding await makes sense.