2 ms·
I agree. I would expect it to throw an exception. However I think there is a better way to support that - make `throw` an expression rather than a statement. T
by IshKebab 5y ago
I agree. I would expect it to throw an exception.
However I think there is a better way to support that - make `throw` an expression rather than a statement. Then you can do
a[10] ?? throw new Error()
which currently doesn't work.