Improve performance by removing all spread/rest usages (#561)

This commit is contained in:
Daniel Tschinder
2017-06-05 19:21:41 +02:00
committed by GitHub
parent bbc3cd45cf
commit 775dcfa6d6
4 changed files with 104 additions and 43 deletions

View File

@@ -1046,7 +1046,7 @@ export default class StatementParser extends ExpressionParser {
// Parses a comma-separated list of module exports.
parseExportSpecifiers(): $ReadOnlyArray<N.ExportSpecifier> {
parseExportSpecifiers(): Array<N.ExportSpecifier> {
const nodes = [];
let first = true;
let needsFrom;