From 2d908f48d986902be2d594abfc867446b841dd8a Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Fri, 16 Oct 2026 09:44:22 -0300 Subject: [PATCH] benchmark: fix hideStackFrames error benchmarks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RafaelGSS PR-URL: https://github.com/nodejs/node/pull/66723 Reviewed-By: Vinícius Lourenço Claro Cardoso Reviewed-By: Luigi Pinca --- benchmark/error/hidestackframes-noerr.js | 4 ++-- benchmark/error/hidestackframes-throw.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/error/hidestackframes-noerr.js b/benchmark/error/hidestackframes-noerr.js index 9e662f6a620..7a2eb85e16c 100644 --- a/benchmark/error/hidestackframes-noerr.js +++ b/benchmark/error/hidestackframes-noerr.js @@ -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; diff --git a/benchmark/error/hidestackframes-throw.js b/benchmark/error/hidestackframes-throw.js index c7147e39ba5..8610bb9c44a 100644 --- a/benchmark/error/hidestackframes-throw.js +++ b/benchmark/error/hidestackframes-throw.js @@ -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 :