Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart |
diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart |
index dfaa87289a5dfd7627c916505da391177ec4472b..03ff5a095a84a77496973b7f0dbbfec613d6a86c 100644 |
--- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart |
+++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart |
@@ -88,6 +88,11 @@ throwAssertionError([message]) => JS( |
$throw_(error); |
})()'''); |
+throwCyclicInitializationError([String message]) { |
+ if (_trapRuntimeErrors) JS('', 'debugger'); |
+ throw new CyclicInitializationError(message); |
+} |
+ |
throwNullValueError() => JS( |
'', |
'''(() => { |