tc39 / ecmarkup

An HTML superset/Markdown subset source format for ECMAScript and related specifications
https://tc39.es/ecmarkup/
MIT License
222 stars 63 forks source link

linter: encourage use of NormalCompletion / ReturnCompletion / ThrowCompletion over Completion Records #622

Open michaelficarra opened 1 month ago

michaelficarra commented 1 month ago

Outside of the AOs in question, ecmarkup should warn when it sees a Completion Record { [[Type]]: ~normal~, [[Value]]: ..., [[Target]]: ~empty~ } that could be replaced with NormalCompletion(...). Similarly for ReturnCompletion and ThrowCompletion.

Related: https://github.com/tc39/ecma262/pull/3414