Skip to content

Commit 2ffd541

Browse files
LiviaMedeirosdanielleadams
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 a4409f8 commit 2ffd541

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/internal/http2/core.js

+3-2
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();
@@ -3332,7 +3333,7 @@ function getPackedSettings(settings) {
33323333
return binding.packSettings();
33333334
}
33343335

3335-
function getUnpackedSettings(buf, options = {}) {
3336+
function getUnpackedSettings(buf, options = kEmptyObject) {
33363337
if (!isArrayBufferView(buf) || buf.length === undefined) {
33373338
throw new ERR_INVALID_ARG_TYPE('buf',
33383339
['Buffer', 'TypedArray'], buf);

0 commit comments

Comments
 (0)