We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kEmptyObject
1 parent 85d93f0 commit 95083cbCopy full SHA for 95083cb
lib/internal/http2/core.js
@@ -37,7 +37,8 @@ const {
37
const {
38
assertCrypto,
39
customInspectSymbol: kInspect,
40
- promisify
+ kEmptyObject,
41
+ promisify,
42
} = require('internal/util');
43
44
assertCrypto();
@@ -3323,7 +3324,7 @@ function getPackedSettings(settings) {
3323
3324
return binding.packSettings();
3325
}
3326
-function getUnpackedSettings(buf, options = {}) {
3327
+function getUnpackedSettings(buf, options = kEmptyObject) {
3328
if (!isArrayBufferView(buf) || buf.length === undefined) {
3329
throw new ERR_INVALID_ARG_TYPE('buf',
3330
['Buffer', 'TypedArray'], buf);
0 commit comments