Skip to content

Commit 2d908f4

Browse files
authored
benchmark: fix hideStackFrames error benchmarks
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: #66723 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent bc5af1c commit 2d908f4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎benchmark/error/hidestackframes-noerr.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ function main({ n, type }) {
2929

3030
const hideStackFramesTestfn = hideStackFrames((value) => {
3131
if (typeof value !== 'number') {
32-
throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
32+
throw new ERR_INVALID_ARG_TYPE.HideStackFramesError('Benchmark', 'number', value);
3333
}
3434
});
3535

36-
const fn = type === 'hide-stackframe' ? hideStackFramesTestfn : testfn;
36+
const fn = type === 'hide-stackframes' ? hideStackFramesTestfn : testfn;
3737

3838
const value = 42;
3939

‎benchmark/error/hidestackframes-throw.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function main({ n, type, double }) {
3232

3333
const hideStackFramesTestfn = hideStackFrames((value) => {
3434
if (typeof value !== 'number') {
35-
throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
35+
throw new ERR_INVALID_ARG_TYPE.HideStackFramesError('Benchmark', 'number', value);
3636
}
3737
});
3838

@@ -44,7 +44,7 @@ function main({ n, type, double }) {
4444
hideStackFramesTestfn.withoutStackTrace(value);
4545
});
4646

47-
const fn = type === 'hide-stackframe' ?
47+
const fn = type === 'hide-stackframes' ?
4848
double === 'true' ?
4949
doubleHideStackFramesTestfn :
5050
hideStackFramesTestfn :

0 commit comments

Comments
 (0)