Per editor feedback in https://github.com/tc39/proposal-async-explicit-resource-management/issues/9, this moves the BindingPattern restriction for using declarations to an Early Error to avoid ambiguity from using the Using parameter in two different ways. The early error condition is roughly equivalent to how const declarations report an early error on a missing Initializer.
Per editor feedback in https://github.com/tc39/proposal-async-explicit-resource-management/issues/9, this moves the BindingPattern restriction for
using
declarations to an Early Error to avoid ambiguity from using theUsing
parameter in two different ways. The early error condition is roughly equivalent to howconst
declarations report an early error on a missing Initializer.