Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2259)

Unified Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/errors.dart

Issue 2869463002: Better stack trace support (Closed)
Patch Set: some more fixes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..474535ada12ba8127ea2f3093cefccf5c286d426 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,13 @@ throwAssertionError([message]) => JS(
$throw_(error);
})()''');
+throwCyclicInitializationError([message]) => JS(
Jennifer Messerly 2017/05/05 23:59:15 I know this is the style of all these helpers but
vsm 2017/05/08 17:07:44 Done.
+ '',
+ '''(() => {
+ if ($_trapRuntimeErrors) debugger;
+ $throw_(new $CyclicInitializationError($message));
+})()''');
+
throwNullValueError() => JS(
'',
'''(() => {

Powered by Google App Engine
This is Rietveld 408576698