dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.19k stars 1.57k forks source link

Malformed types in on-catch not handled according to spec. #8601

Closed johnniwinther closed 9 years ago

johnniwinther commented 11 years ago

The correct semantics is

try {   throw 'foo'; } on Unresolved catch {   // Catch 'foo' in production mode.   // Throw type error in checked mode } catch {   // Never end here. }

See http://dartbug.com/8356

iposva-google commented 11 years ago

Removed Priority-Medium label. Added Priority-Unassigned label.

iposva-google commented 10 years ago

Set owner to @crelier. Removed Priority-Unassigned label. Added Priority-High, Accepted labels.

crelier commented 10 years ago

The VM implements the spec. No dynamic type error should be expected for a malformed type, either in production or checked mode, since the malformed type is mapped to dynamic.

See also 8356 and 7311.


Added Invalid label.