SuperExpression -> Super

This commit is contained in:
Ingvar Stepanyan 2015-03-19 22:07:12 +02:00 committed by Marijn Haverbeke
parent e88a5431db
commit 921e45ab2b
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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}