From 921e45ab2b257439790402a7e7d6aa133270ddf5 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Thu, 19 Mar 2015 22:07:12 +0200 Subject: [PATCH] SuperExpression -> Super --- src/expression.js | 2 +- src/loose/expression.js | 2 +- test/tests-harmony.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/expression.js b/src/expression.js index 82eda65434..84bb04a540 100644 --- a/src/expression.js +++ b/src/expression.js @@ -236,7 +236,7 @@ pp.parseExprAtom = function(refShorthandDefaultPos) { switch (this.type) { case tt._this: case tt._super: - let type = this.type === tt._this ? "ThisExpression" : "SuperExpression" + let type = this.type === tt._this ? "ThisExpression" : "Super" node = this.startNode() this.next() return this.finishNode(node, type) diff --git a/src/loose/expression.js b/src/loose/expression.js index 4269f2f234..b0286fb58d 100644 --- a/src/loose/expression.js +++ b/src/loose/expression.js @@ -179,7 +179,7 @@ lp.parseExprAtom = function() { switch (this.tok.type) { case tt._this: case tt._super: - let type = this.tok.type === tt._this ? "ThisExpression" : "SuperExpression" + let type = this.tok.type === tt._this ? "ThisExpression" : "Super" node = this.startNode() this.next() return this.finishNode(node, type) diff --git a/test/tests-harmony.js b/test/tests-harmony.js index bf55f8bfde..5eec5cbf5e 100644 --- a/test/tests-harmony.js +++ b/test/tests-harmony.js @@ -7463,7 +7463,7 @@ test("\"use strict\"; (class A {constructor() { super() }})", { expression: { type: "CallExpression", callee: { - type: "SuperExpression", + type: "Super", loc: { start: {line: 1, column: 40}, end: {line: 1, column: 45} @@ -7794,7 +7794,7 @@ test("\"use strict\"; (class A { static constructor() { super() }})", { expression: { type: "CallExpression", callee: { - type: "SuperExpression", + type: "Super", loc: { start: {line: 1, column: 48}, end: {line: 1, column: 53}