Closed rbuckton closed 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.
using[x]
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.
Using
A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/152.
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.