Civet icon indicating copy to clipboard operation
Civet copied to clipboard

Arrow functions with object-like block bodies are not as expected ES style code

Open STRd6 opened this issue 2 years ago • 0 comments

x => {
  f(y)
}

Actual:

x(() => {
  f: f(y);
});

ES Compat:

x(() => {
  return f(y);
});

This is not really a bug but more of a tradeoff that we've discussed before. In any case it probably needs an es-compat flag.

STRd6 avatar Aug 30 '23 02:08 STRd6