summaryrefslogtreecommitdiff
path: root/deps/v8/src/ast/prettyprinter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/ast/prettyprinter.cc')
-rw-r--r--deps/v8/src/ast/prettyprinter.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/v8/src/ast/prettyprinter.cc b/deps/v8/src/ast/prettyprinter.cc
index a53d07064d..c7f6e3d9f0 100644
--- a/deps/v8/src/ast/prettyprinter.cc
+++ b/deps/v8/src/ast/prettyprinter.cc
@@ -12,6 +12,7 @@
#include "src/globals.h"
#include "src/objects-inl.h"
#include "src/string-builder-inl.h"
+#include "src/vector.h"
namespace v8 {
namespace internal {
@@ -500,8 +501,7 @@ void CallPrinter::VisitImportCallExpression(ImportCallExpression* node) {
Print(")");
}
-void CallPrinter::VisitThisFunction(ThisFunction* node) {}
-
+void CallPrinter::VisitThisExpression(ThisExpression* node) { Print("this"); }
void CallPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {}
@@ -1391,11 +1391,10 @@ void AstPrinter::VisitImportCallExpression(ImportCallExpression* node) {
Visit(node->argument());
}
-void AstPrinter::VisitThisFunction(ThisFunction* node) {
- IndentedScope indent(this, "THIS-FUNCTION", node->position());
+void AstPrinter::VisitThisExpression(ThisExpression* node) {
+ IndentedScope indent(this, "THIS-EXPRESSION", node->position());
}
-
void AstPrinter::VisitSuperPropertyReference(SuperPropertyReference* node) {
IndentedScope indent(this, "SUPER-PROPERTY-REFERENCE", node->position());
}