forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When inspecting nested objects some times a whitespace was added at the end of a line. This fixes this erroneous space. Besides that the `breakLength` was not followed if a single property was longer than the breakLength. It will now break a single property into the key and value in such cases. PR-URL: nodejs#20802 Refs: nodejs#20253 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
- Loading branch information
Showing
4 changed files
with
57 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,8 @@ const url = new URL('https://username:[email protected]:8080/path/name/?que=ry# | |
assert.strictEqual( | ||
util.inspect(url), | ||
`URL { | ||
href: 'https://username:[email protected]:8080/path/name/?que=ry#hash', | ||
href: | ||
'https://username:[email protected]:8080/path/name/?que=ry#hash', | ||
origin: 'https://host.name:8080', | ||
protocol: 'https:', | ||
username: 'username', | ||
|
@@ -32,7 +33,8 @@ assert.strictEqual( | |
assert.strictEqual( | ||
util.inspect(url, { showHidden: true }), | ||
`URL { | ||
href: 'https://username:[email protected]:8080/path/name/?que=ry#hash', | ||
href: | ||
'https://username:[email protected]:8080/path/name/?que=ry#hash', | ||
origin: 'https://host.name:8080', | ||
protocol: 'https:', | ||
username: 'username', | ||
|
@@ -46,7 +48,7 @@ assert.strictEqual( | |
hash: '#hash', | ||
cannotBeBase: false, | ||
special: true, | ||
[Symbol(context)]:\x20 | ||
[Symbol(context)]: | ||
URLContext { | ||
flags: 2032, | ||
scheme: 'https:', | ||
|