Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Revert "Fix export default async function to be FunctionDeclaration" #375

Merged
merged 1 commit into from
Feb 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/parser/statement.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,6 @@ pp.parseExport = function (node) {
let needsSemi = false;
if (this.eat(tt._function)) {
expr = this.parseFunction(expr, true, false, false, true);
} else if (this.eatContextual("async") && this.eat(tt._function)) {
expr = this.parseFunction(expr, true, false, true, true);
} else if (this.match(tt._class)) {
expr = this.parseClass(expr, true, true);
} else {
Expand Down
2 changes: 0 additions & 2 deletions test/fixtures/es2017/async-functions/export/actual.js

This file was deleted.

172 changes: 0 additions & 172 deletions test/fixtures/es2017/async-functions/export/expected.json

This file was deleted.

3 changes: 0 additions & 3 deletions test/fixtures/es2017/async-functions/export/options.json

This file was deleted.