| Index: pkg/compiler/lib/src/js_backend/backend_impact.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart
|
| index 975ce12bc0fb282b501c3ca697fd2f8b331b70ff..cbd3752e8a34d310b532b2ed5d1130b9e310e111 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend_impact.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart
|
| @@ -236,12 +236,21 @@ class BackendImpacts {
|
| BackendImpact _throwRuntimeError;
|
|
|
| BackendImpact get throwRuntimeError {
|
| - return _throwRuntimeError ??= new BackendImpact(staticUses: [
|
| - helpers.throwRuntimeError
|
| - ], otherImpacts: [
|
| - // Also register the types of the arguments passed to this method.
|
| - stringValues
|
| - ]);
|
| + return _throwRuntimeError ??= new BackendImpact(
|
| + staticUses: compiler.options.useKernel
|
| + ? [
|
| + // TODO(sra): Refactor impacts so that we know which of these
|
| + // are called.
|
| + helpers.malformedTypeError,
|
| + helpers.throwRuntimeError,
|
| + ]
|
| + : [
|
| + helpers.throwRuntimeError,
|
| + ],
|
| + otherImpacts: [
|
| + // Also register the types of the arguments passed to this method.
|
| + stringValues
|
| + ]);
|
| }
|
|
|
| BackendImpact _superNoSuchMethod;
|
|
|