mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
benchmark: fix hideStackFrames error benchmarks
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: https://github.com/nodejs/node/pull/66723 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
bc5af1c67c
commit
2d908f48d9
2 files changed
+4
-4
No files matched your search
@@ -29,11 +29,11 @@ function main({ n, type }) {
|
||||
|
||||
const hideStackFramesTestfn = hideStackFrames((value) => {
|
||||
if (typeof value !== 'number') {
|
||||
throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
|
||||
throw new ERR_INVALID_ARG_TYPE.HideStackFramesError('Benchmark', 'number', value);
|
||||
}
|
||||
});
|
||||
|
||||
const fn = type === 'hide-stackframe' ? hideStackFramesTestfn : testfn;
|
||||
const fn = type === 'hide-stackframes' ? hideStackFramesTestfn : testfn;
|
||||
|
||||
const value = 42;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ function main({ n, type, double }) {
|
||||
|
||||
const hideStackFramesTestfn = hideStackFrames((value) => {
|
||||
if (typeof value !== 'number') {
|
||||
throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
|
||||
throw new ERR_INVALID_ARG_TYPE.HideStackFramesError('Benchmark', 'number', value);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ function main({ n, type, double }) {
|
||||
hideStackFramesTestfn.withoutStackTrace(value);
|
||||
});
|
||||
|
||||
const fn = type === 'hide-stackframe' ?
|
||||
const fn = type === 'hide-stackframes' ?
|
||||
double === 'true' ?
|
||||
doubleHideStackFramesTestfn :
|
||||
hideStackFramesTestfn :
|
||||
|
||||
Reference in new issue
Block a user