mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
http2: use kEmptyObject
PR-URL: https://github.com/nodejs/node/pull/43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
85d93f0bf6
commit
95083cb0ad
1 file changed
+3
-2
@@ -37,7 +37,8 @@ const {
|
||||
const {
|
||||
assertCrypto,
|
||||
customInspectSymbol: kInspect,
|
||||
promisify
|
||||
kEmptyObject,
|
||||
promisify,
|
||||
} = require('internal/util');
|
||||
|
||||
assertCrypto();
|
||||
@@ -3323,7 +3324,7 @@ function getPackedSettings(settings) {
|
||||
return binding.packSettings();
|
||||
}
|
||||
|
||||
function getUnpackedSettings(buf, options = {}) {
|
||||
function getUnpackedSettings(buf, options = kEmptyObject) {
|
||||
if (!isArrayBufferView(buf) || buf.length === undefined) {
|
||||
throw new ERR_INVALID_ARG_TYPE('buf',
|
||||
['Buffer', 'TypedArray'], buf);
|
||||
|
||||
Reference in new issue
Block a user