Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart |
index 0a3e17621e50da77daa92ebd2b7438590d447386..a60442374be6d026ed6179cf11abf53357ff720a 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/utils.dart |
@@ -24,11 +24,13 @@ final hasOwnProperty = JS('', 'Object.prototype.hasOwnProperty'); |
/// This error indicates a strong mode specific failure, other than a type |
/// assertion failure (TypeError) or CastError. |
void throwStrongModeError(String message) { |
+ JS('', 'debugger'); |
JS('', 'throw new #(#);', StrongModeErrorImplementation, message); |
} |
/// This error indicates a bug in the runtime or the compiler. |
void throwInternalError(String message) { |
+ JS('', 'debugger'); |
JS('', 'throw Error(#)', message); |
} |