diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index e7d8f455f2cbfe..74662126f392a4 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -946,7 +946,7 @@ function pingCallback(cb) { // All settings are optional and may be left undefined const validateSettings = hideStackFrames((settings) => { if (settings === undefined) return; - assertIsObject(settings.customSettings, 'customSettings', 'Number'); + assertIsObject.withoutStackTrace(settings.customSettings, 'customSettings', 'Number'); assertWithinRange.withoutStackTrace('headerTableSize', settings.headerTableSize, 0, kMaxInt);