@@ -1508,7 +1508,7 @@ void _asSubtype(Object? o, bool onlyNullabilityCheck, _Type t) {
1508
1508
? _isNullabilityCheck (o, t.isDeclaredNullable)
1509
1509
: _isSubtype (o, t);
1510
1510
if (success) return ;
1511
- _TypeError . _throwAsCheckError (o, t);
1511
+ _throwAsCheckError (o, t);
1512
1512
}
1513
1513
1514
1514
@pragma ("wasm:entry-point" )
@@ -1592,11 +1592,12 @@ void _asInterfaceSubtype2(
1592
1592
}
1593
1593
1594
1594
@pragma ('wasm:never-inline' )
1595
- void _throwInterfaceTypeAsCheckError0 (
1595
+ Never _throwInterfaceTypeAsCheckError0 (
1596
1596
Object ? o,
1597
1597
bool isDeclaredNullable,
1598
1598
WasmI32 tId,
1599
1599
) {
1600
+ if (minify) throw typeErrorWithoutDetails;
1600
1601
final typeArguments = const WasmArray <_Type >.literal ([]);
1601
1602
_TypeError ._throwAsCheckError (
1602
1603
o,
@@ -1606,12 +1607,13 @@ void _throwInterfaceTypeAsCheckError0(
1606
1607
1607
1608
@pragma ("wasm:entry-point" )
1608
1609
@pragma ('wasm:never-inline' )
1609
- void _throwInterfaceTypeAsCheckError1 (
1610
+ Never _throwInterfaceTypeAsCheckError1 (
1610
1611
Object ? o,
1611
1612
bool isDeclaredNullable,
1612
1613
WasmI32 tId,
1613
1614
_Type typeArgument0,
1614
1615
) {
1616
+ if (minify) throw typeErrorWithoutDetails;
1615
1617
final typeArguments = WasmArray <_Type >.literal ([typeArgument0]);
1616
1618
_TypeError ._throwAsCheckError (
1617
1619
o,
@@ -1621,13 +1623,14 @@ void _throwInterfaceTypeAsCheckError1(
1621
1623
1622
1624
@pragma ("wasm:entry-point" )
1623
1625
@pragma ('wasm:never-inline' )
1624
- void _throwInterfaceTypeAsCheckError2 (
1626
+ Never _throwInterfaceTypeAsCheckError2 (
1625
1627
Object ? o,
1626
1628
bool isDeclaredNullable,
1627
1629
WasmI32 tId,
1628
1630
_Type typeArgument0,
1629
1631
_Type typeArgument1,
1630
1632
) {
1633
+ if (minify) throw typeErrorWithoutDetails;
1631
1634
final typeArguments = WasmArray <_Type >.literal ([
1632
1635
typeArgument0,
1633
1636
typeArgument1,
@@ -1640,18 +1643,26 @@ void _throwInterfaceTypeAsCheckError2(
1640
1643
1641
1644
@pragma ("wasm:entry-point" )
1642
1645
@pragma ('wasm:never-inline' )
1643
- void _throwInterfaceTypeAsCheckError (
1646
+ Never _throwInterfaceTypeAsCheckError (
1644
1647
Object ? o,
1645
1648
bool isDeclaredNullable,
1646
1649
WasmI32 tId,
1647
1650
WasmArray <_Type > typeArguments,
1648
1651
) {
1652
+ if (minify) throw typeErrorWithoutDetails;
1649
1653
_TypeError ._throwAsCheckError (
1650
1654
o,
1651
1655
_InterfaceType (tId, isDeclaredNullable, typeArguments),
1652
1656
);
1653
1657
}
1654
1658
1659
+ @pragma ("wasm:entry-point" )
1660
+ @pragma ('wasm:never-inline' )
1661
+ Never _throwAsCheckError (Object ? o, _Type type) {
1662
+ if (minify) throw typeErrorWithoutDetails;
1663
+ _TypeError ._throwAsCheckError (o, type);
1664
+ }
1665
+
1655
1666
@pragma ("wasm:entry-point" )
1656
1667
bool _verifyOptimizedTypeCheck (
1657
1668
bool result,
0 commit comments