Index: pkg/compiler/lib/src/js/js.dart |
diff --git a/pkg/compiler/lib/src/js/js.dart b/pkg/compiler/lib/src/js/js.dart |
index f9d2a66ba352e77d3348f005cc40cf15bb48e3bd..762fb5e9bc9262f8a230d5a30b3b8d8967381bfb 100644 |
--- a/pkg/compiler/lib/src/js/js.dart |
+++ b/pkg/compiler/lib/src/js/js.dart |
@@ -65,7 +65,7 @@ class Dart2JSJavaScriptPrintingContext implements JavaScriptPrintingContext { |
@override |
void error(String message) { |
- throw new SpannableAssertionFailure(NO_LOCATION_SPANNABLE, message); |
+ failedAt(NO_LOCATION_SPANNABLE, message); |
} |
@override |