We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
kEmptyObject
1 parent a4409f8 commit 2ffd541Copy full SHA for 2ffd541
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();
@@ -3332,7 +3333,7 @@ function getPackedSettings(settings) {
3332
3333
return binding.packSettings();
3334
}
3335
-function getUnpackedSettings(buf, options = {}) {
3336
+function getUnpackedSettings(buf, options = kEmptyObject) {
3337
if (!isArrayBufferView(buf) || buf.length === undefined) {
3338
throw new ERR_INVALID_ARG_TYPE('buf',
3339
['Buffer', 'TypedArray'], buf);
0 commit comments