tc39 / proposal-explicit-resource-management

ECMAScript Explicit Resource Management
https://arai-a.github.io/ecma262-compare/?pr=3000
BSD 3-Clause "New" or "Revised" License
758 stars 30 forks source link

Remove superfluous ClassBody restriction #220

Closed rbuckton closed 5 months ago

rbuckton commented 6 months ago

Per https://github.com/tc39/ecma262/pull/3000#pullrequestreview-1863242577, the ClassBody restriction in the early errors for UsingDeclaration and AwaitUsingDeclaration is superfluous as it cannot occur, thus should be removed.

A PR against ecma262 is being tracked by https://github.com/rbuckton/ecma262/pull/6.

github-actions[bot] commented 6 months ago

A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/220.

rbuckton commented 6 months ago

This may be considered a normative change, but removing ClassBody from this list would be otherwise unobservable.