Skip to content

Commit

Permalink
build: fix build benchmark files
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Jul 14, 2023
1 parent 9a1361f commit c089430
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@types/merge2": "^1.1.4",
"@types/micromatch": "^4.0.0",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.8",
"@types/node": "^14.18.53",
"@types/picomatch": "^2.3.0",
"@types/sinon": "^7.5.0",
"bencho": "^0.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/benchmark/suites/product/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class Glob {
});

const action = new Promise<string[]>((resolve, reject) => {
stream.once('error', (error) => reject(error));
stream.on('error', (error) => reject(error));
stream.on('data', (entry: string) => entries.push(entry));
stream.once('end', () => resolve(entries));
stream.on('end', () => resolve(entries));
});

await this._measure(() => action);
Expand Down

0 comments on commit c089430

Please sign in to comment.