-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: #20802 Refs: #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
1 parent
5ce85a7
commit 38bc5fb
Showing
4 changed files
with
56 additions
and
52 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:', | ||
|