Open DXsmiley opened 5 years ago
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.
The JS compiler's list of keywords,
kKeyword
, is actually a list of Java keywords. (it's missingasync
,await
, hastransient
when it shouldn't, etc.)Relevant code: https://github.com/protocolbuffers/protobuf/blob/94a1819c7ae8509ab6ad37d867d3ea60a5809aaa/src/google/protobuf/compiler/js/js_generator.cc#L62-L68