| Index: tool/input_sdk/private/ddc_runtime/utils.dart
|
| diff --git a/tool/input_sdk/private/ddc_runtime/utils.dart b/tool/input_sdk/private/ddc_runtime/utils.dart
|
| index 62b49d0e73960c686ee367091628345d687a2042..0a3e17621e50da77daa92ebd2b7438590d447386 100644
|
| --- a/tool/input_sdk/private/ddc_runtime/utils.dart
|
| +++ b/tool/input_sdk/private/ddc_runtime/utils.dart
|
| @@ -21,19 +21,10 @@ Iterable getOwnPropertySymbols(obj) =>
|
|
|
| final hasOwnProperty = JS('', 'Object.prototype.hasOwnProperty');
|
|
|
| -// TODO(ochafik): Add ES6 class syntax support to JS intrinsics to avoid this.
|
| -final StrongModeError = JS('', '''(function() {
|
| - function StrongModeError(message) {
|
| - Error.call(this);
|
| - this.message = message;
|
| - };
|
| - Object.setPrototypeOf(StrongModeError.prototype, Error.prototype);
|
| - return StrongModeError;
|
| -})()''');
|
| -
|
| -/// This error indicates a strong mode specific failure.
|
| +/// This error indicates a strong mode specific failure, other than a type
|
| +/// assertion failure (TypeError) or CastError.
|
| void throwStrongModeError(String message) {
|
| - JS('', 'throw new #(#);', StrongModeError, message);
|
| + JS('', 'throw new #(#);', StrongModeErrorImplementation, message);
|
| }
|
|
|
| /// This error indicates a bug in the runtime or the compiler.
|
|
|