Skip to content

Commit 95083cb

Browse files
LiviaMedeirostargos
authored andcommitted
http2: use kEmptyObject
PR-URL: #43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 85d93f0 commit 95083cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/http2/core.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const {
3737
const {
3838
assertCrypto,
3939
customInspectSymbol: kInspect,
40-
promisify
40+
kEmptyObject,
41+
promisify,
4142
} = require('internal/util');
4243

4344
assertCrypto();
@@ -3323,7 +3324,7 @@ function getPackedSettings(settings) {
33233324
return binding.packSettings();
33243325
}
33253326

3326-
function getUnpackedSettings(buf, options = {}) {
3327+
function getUnpackedSettings(buf, options = kEmptyObject) {
33273328
if (!isArrayBufferView(buf) || buf.length === undefined) {
33283329
throw new ERR_INVALID_ARG_TYPE('buf',
33293330
['Buffer', 'TypedArray'], buf);

0 commit comments

Comments
 (0)