[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:
Nicholas Shahan 2022-12-15 00:10:59 +00:00 committed by Commit Queue
parent cabf333606
commit 022ca53db3

View file

@ -232,7 +232,7 @@ final Object DartError = JS(
return #(this[#]);
}
}''',
NullThrownError(),
TypeErrorImpl('Throw of null.'),
_thrownValue,
_jsError,
_jsError,