Closed tjpalmer closed 7 months ago
Just some background - in which phase different languages handle escaping varies and escaping reserved words in JS was PITA for the Caja project. We specifically found that different browsers treated escaped reserved words differently (egs include "default". Also ES5 unreserved some keywords from ES3 but that not all versions of browsers did (eg namespace). @tjpalmer's suggestion to add a suffix character will always work (depending on the suffix character) but merely escaping (for example the first character) will not.
JS often can cope with semi-keywords as identifiers, but minimally we could auto-rename to things like
with_
rather than crashing.