Index: src/ast/prettyprinter.cc |
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc |
index 2f939554abfa3f68df9b96afb6616366acd21aa3..59690a856b17d20284263552ce29143c4aea8f54 100644 |
--- a/src/ast/prettyprinter.cc |
+++ b/src/ast/prettyprinter.cc |
@@ -879,15 +879,16 @@ void AstPrinter::PrintTryStatement(TryStatement* node) { |
case HandlerTable::CAUGHT: |
prediction = "CAUGHT"; |
break; |
- case HandlerTable::PROMISE: |
- prediction = "PROMISE"; |
- break; |
case HandlerTable::DESUGARING: |
prediction = "DESUGARING"; |
break; |
case HandlerTable::ASYNC_AWAIT: |
prediction = "ASYNC_AWAIT"; |
break; |
+ case HandlerTable::PROMISE: |
+ // Catch prediction resulting in promise rejections aren't |
+ // parsed by the parser. |
+ UNREACHABLE(); |
} |
Print(" %s\n", prediction); |
} |