Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ffd541

Browse filesBrowse 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
Copy full SHA for 2ffd541

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎lib/internal/http2/core.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/core.js
+3-2Lines 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();
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.