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
725 stars 29 forks source link

Switch back to a production parameter #152

Closed rbuckton closed 1 year ago

rbuckton commented 1 year ago

This reverts #145 by switching back to a production parameter to restrict BindingPattern in a UsingDeclaration. Relying only on an early error would result in a conflict when parsing using[x], which was not intended.

This also addresses editor feedback from https://github.com/tc39/proposal-async-explicit-resource-management/issues/9 by ensuring that we're not giving the Using production parameter two different meanings.

github-actions[bot] commented 1 year ago

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