Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index e25df088bbb3c545be5373e205e5342e7c9bf334..18c40456760d45e8b018c1606f764581ff949b62 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -149,12 +149,10 @@ |
case JS_SPECIAL_API_OBJECT_TYPE: |
case JS_CONTEXT_EXTENSION_OBJECT_TYPE: |
case JS_GENERATOR_OBJECT_TYPE: |
+ case JS_PROMISE_TYPE: |
case JS_ARGUMENTS_TYPE: |
case JS_ERROR_TYPE: |
JSObject::cast(this)->JSObjectPrint(os); |
- break; |
- case JS_PROMISE_TYPE: |
- JSPromise::cast(this)->JSPromisePrint(os); |
break; |
case JS_ARRAY_TYPE: |
JSArray::cast(this)->JSArrayPrint(os); |
@@ -543,14 +541,6 @@ |
JSObjectPrintBody(os, this); |
} |
-void JSPromise::JSPromisePrint(std::ostream& os) { // NOLINT |
- JSObjectPrintHeader(os, this, "JSPromise"); |
- os << "\n - status = " << JSPromise::Status(status()); |
- os << "\n - result = " << Brief(result()); |
- os << "\n - deferreds = " << Brief(deferred()); |
- os << "\n - fulfill_reactions = " << Brief(fulfill_reactions()); |
- os << "\n - reject_reactions = " << Brief(reject_reactions()); |
-} |
void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT |
JSObjectPrintHeader(os, this, "JSRegExp"); |