SuperExpression -> Super
This commit is contained in:
parent
e88a5431db
commit
921e45ab2b
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user