Skip to content

Commit 2c49f85

Browse files
committed
Make super an ident
1 parent 0a33a19 commit 2c49f85

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

feature/class.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ import { keyword, block } from './block.js';
66
const TOKEN = 200, PREFIX = 140, COMP = 90;
77
const STATIC = Symbol('static');
88

9-
// super → literal
10-
literal('super', Symbol.for('super'));
11-
129
// static member → ['static', member]
1310
unary('static', PREFIX);
1411

test/feature/async-class.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ test('async/class: static', () => {
5252
});
5353

5454
test('async/class: super', () => {
55-
is(parse('super'), [, Symbol.for('super')]);
56-
is(parse('super.x'), ['.', [, Symbol.for('super')], 'x']);
57-
is(parse('super()'), ['()', [, Symbol.for('super')], null]);
55+
is(parse('super'), 'super');
56+
is(parse('super.x'), ['.', 'super', 'x']);
57+
is(parse('super()'), ['()', 'super', null]);
5858
});
5959

6060
test('async/class: private fields', () => {

0 commit comments

Comments
 (0)