mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 08:11:05 +00:00
[ddc] Remove use of NullThrownError
Throw a `TypeError` with the same message, 'Throw of null.' instead of a `NullThrownError`. Fixes: https://github.com/dart-lang/sdk/issues/50598 Change-Id: Ic13d6bc29a49c405ef3d3d0eb4f7fd781aefbc6b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/273281 Commit-Queue: Nicholas Shahan <nshahan@google.com> Reviewed-by: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
cabf333606
commit
022ca53db3
|
@ -232,7 +232,7 @@ final Object DartError = JS(
|
|||
return #(this[#]);
|
||||
}
|
||||
}''',
|
||||
NullThrownError(),
|
||||
TypeErrorImpl('Throw of null.'),
|
||||
_thrownValue,
|
||||
_jsError,
|
||||
_jsError,
|
||||
|
|
Loading…
Reference in a new issue