Skip to content

Commit cc644de

Browse files
aduh95RafaelGSS
authored andcommitted
doc: make MDN links to global classes more consistent
PR-URL: #56924 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ulises Gascón <[email protected]> Reviewed-By: Akhil Marsonya <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 93bba4e commit cc644de

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

doc/api/single-executable-applications.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ added:
322322
- v20.12.0
323323
-->
324324
325-
Similar to [`sea.getAsset()`][], but returns the result in a [`Blob`][].
325+
Similar to [`sea.getAsset()`][], but returns the result in a {Blob}.
326326
An error is thrown when no matching asset can be found.
327327
328328
* `key` {string} the key for the asset in the dictionary specified by the
@@ -423,7 +423,6 @@ to help us document them.
423423
[Mach-O]: https://en.wikipedia.org/wiki/Mach-O
424424
[PE]: https://en.wikipedia.org/wiki/Portable_Executable
425425
[Windows SDK]: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
426-
[`Blob`]: https://developer.mozilla.org/en-US/docs/Web/API/Blob
427426
[`process.execPath`]: process.md#processexecpath
428427
[`require()`]: modules.md#requireid
429428
[`require.main`]: modules.md#accessing-the-main-module

doc/api/url.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ added:
833833
* `iterable` {Iterable} An iterable object whose elements are key-value pairs
834834

835835
Instantiate a new `URLSearchParams` object with an iterable map in a way that
836-
is similar to [`Map`][]'s constructor. `iterable` can be an `Array` or any
836+
is similar to {Map}'s constructor. `iterable` can be an `Array` or any
837837
iterable object. That means `iterable` can be another `URLSearchParams`, in
838838
which case the constructor will simply create a clone of the provided
839839
`URLSearchParams`. Elements of `iterable` are key-value pairs, and can
@@ -1824,7 +1824,6 @@ console.log(myURL.origin);
18241824
[WHATWG URL Standard]: https://url.spec.whatwg.org/
18251825
[`Error`]: errors.md#class-error
18261826
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1827-
[`Map`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
18281827
[`TypeError`]: errors.md#class-typeerror
18291828
[`URLSearchParams`]: #class-urlsearchparams
18301829
[`array.toString()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString

doc/api/zlib.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,8 @@ Creates and returns a new [`Unzip`][] object.
11531153

11541154
<!--type=misc-->
11551155

1156-
All of these take a [`Buffer`][], [`TypedArray`][], [`DataView`][],
1157-
[`ArrayBuffer`][] or string as the first argument, an optional second argument
1156+
All of these take a {Buffer}, {TypedArray}, {DataView}, {ArrayBuffer}, or string
1157+
as the first argument, an optional second argument
11581158
to supply options to the `zlib` classes and will call the supplied callback
11591159
with `callback(error, result)`.
11601160

@@ -1502,19 +1502,15 @@ Decompress a chunk of data with [`Unzip`][].
15021502
[Streams API]: stream.md
15031503
[`.flush()`]: #zlibflushkind-callback
15041504
[`Accept-Encoding`]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3
1505-
[`ArrayBuffer`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
15061505
[`BrotliCompress`]: #class-zlibbrotlicompress
15071506
[`BrotliDecompress`]: #class-zlibbrotlidecompress
1508-
[`Buffer`]: buffer.md#class-buffer
15091507
[`Content-Encoding`]: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
1510-
[`DataView`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
15111508
[`DeflateRaw`]: #class-zlibdeflateraw
15121509
[`Deflate`]: #class-zlibdeflate
15131510
[`Gunzip`]: #class-zlibgunzip
15141511
[`Gzip`]: #class-zlibgzip
15151512
[`InflateRaw`]: #class-zlibinflateraw
15161513
[`Inflate`]: #class-zlibinflate
1517-
[`TypedArray`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
15181514
[`Unzip`]: #class-zlibunzip
15191515
[`buffer.kMaxLength`]: buffer.md#bufferkmaxlength
15201516
[`deflateInit2` and `inflateInit2`]: https://zlib.net/manual.html#Advanced

0 commit comments

Comments
 (0)