| Index: pkg/compiler/lib/src/ssa/nodes.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart
|
| index ddeaf26d502e78740c561c9900149e84003683b8..64e12387c5807762a746cc6b90d910d7876e28bf 100644
|
| --- a/pkg/compiler/lib/src/ssa/nodes.dart
|
| +++ b/pkg/compiler/lib/src/ssa/nodes.dart
|
| @@ -1913,8 +1913,14 @@ class HForeignCode extends HForeign {
|
| accept(HVisitor visitor) => visitor.visitForeignCode(this);
|
|
|
| bool isJsStatement() => isStatement;
|
| - bool canThrow() =>
|
| - canBeNull() ? throwBehavior.canThrow : throwBehavior.onNonNull.canThrow;
|
| + bool canThrow() {
|
| + if (inputs.length > 0) {
|
| + return inputs.first.canBeNull()
|
| + ? throwBehavior.canThrow
|
| + : throwBehavior.onNonNull.canThrow;
|
| + }
|
| + return throwBehavior.canThrow;
|
| + }
|
|
|
| bool onlyThrowsNSM() => throwBehavior.isOnlyNullNSMGuard;
|
|
|
|
|