endojs / Jessie

Tiny subset of JavaScript for ocap-safe universal mobile code
Apache License 2.0
279 stars 16 forks source link

fix(eslint-plugin): Disallow `await` in non-plain assignments #90

Closed mhofman closed 1 year ago

mhofman commented 1 year ago

An non plain assignment operation is one where the lhs is evaluated before the right hand side expression is. For example a += expr is the equivalent of a = a + expr. While the Jessie rules disallow a + await expr we mistakenly allowed a += await expr.

Fixes #89