[compiler] Emit more specific error when making identifiers with reserved words (#34080)
This currently throws an invariant which may be misleading. I checked the ecma262 spec and used the same list of reserved words in our check. To err on the side of being conservative, we also error when strict mode reserved words are used. DiffTrain build for [52612a7cbdd8e1fee9599478247f78725869ebad](https://github.com/facebook/react/commit/52612a7cbdd8e1fee9599478247f78725869ebad)
P
poteto committed
ad524e50a19716f447baef70da7e8700e7b06582
Parent: ceea1fc