Index: pkg/js_ast/lib/src/printer.dart |
diff --git a/pkg/js_ast/lib/src/printer.dart b/pkg/js_ast/lib/src/printer.dart |
index 4576ee4f786151879c3ac08e16ee070bca9c5df1..917fcf49b6fe9ac53dc051d4163f8dc22beec2c1 100644 |
--- a/pkg/js_ast/lib/src/printer.dart |
+++ b/pkg/js_ast/lib/src/printer.dart |
@@ -1001,7 +1001,7 @@ class Printer implements NodeVisitor { |
@override |
void visitArrayHole(ArrayHole node) { |
- throw "Unreachable"; |
+ context.error("Unreachable"); |
} |
@override |