language-javascript icon indicating copy to clipboard operation
language-javascript copied to clipboard

`async` should be usable as an object key

Open cdepillabout opened this issue 2 years ago • 1 comments

There was a bug reported when trying to use language-javascript-0.7.1.0 in PureScript: https://github.com/purescript/purescript/pull/4199#issuecomment-962622105

It appears that async is completely treated as a keyword, and not allowed as an object key. So something like myObj.async doesn't parse. But apparently this is allowed in JS.

This was probably introduced in https://github.com/erikd/language-javascript/pull/113.

(I'm not super familiar with language-javascript, or even JS, but maybe @MonoidMusician, @garyb, or @JordanMartinez could follow-up on this if @erikd needs more information or I've reported this incorrectly.)

cdepillabout avatar Nov 08 '21 01:11 cdepillabout