Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bnb/make sure its not everything #8

Open
wants to merge 1,793 commits into
base: bnb/update-doc-style-guide
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1793 commits
Select commit Hold shift + click to select a range
db6490c
http2: close stream and session on frameError
RafaelGSS Mar 2, 2022
b67300f
doc: add JakobJingleheimer to collaborators list
JakobJingleheimer Mar 2, 2022
d50efc6
doc: fix typos
apeltop Mar 2, 2022
7724e78
doc: add missing single-quotes to `http.OutgoingMessage`
juanarbol Mar 1, 2022
010cb71
url: fix url.parse() for @hostname
Trott Feb 26, 2022
54bc3c9
stream: use .chunk when calling adapters's writev
meixg Mar 3, 2022
59b2fe6
doc: add next-10 to strategic initiatives
mhdawson Mar 1, 2022
2d6aea7
build: drop shortened URL from lint-commit-message
richardlau Mar 3, 2022
29bb2bb
doc: use parenthesis instead of em dash
aduh95 Mar 3, 2022
b35ee26
test: fix test-process-env-tz.js by using RegExp
XadillaX Mar 4, 2022
acc11c9
esm: fix base URL for network imports
bmeck Feb 25, 2022
91cc4fa
doc: add note about nghttp2 hd pair size
RafaelGSS Mar 5, 2022
de3a86b
doc: clarify that some modules don't work when compiled without ssl
aduh95 Mar 5, 2022
02d326f
loader: fix esm resolve for symlink file
meixg Mar 6, 2022
406949e
meta: update AUTHORS
nodejs-github-bot Mar 6, 2022
3d4f3ca
src: skip revoke_data_object if uuid is not found
meixg Mar 6, 2022
f34f9f1
test: cover 32-bit sizes in generatePrime
tniessen Mar 6, 2022
0f9b618
tools: update lint-md-dependencies to rollup@2.69.1
nodejs-github-bot Mar 6, 2022
5dd6a5b
doc: remove "considered" for clarity
Trott Mar 6, 2022
7262d63
http2: add edge case to GOAWAY request
RafaelGSS Mar 6, 2022
ae59bcb
doc: remove erroneous comma in cluster explainer
tniessen Mar 7, 2022
4158d62
url, src: modify one `special_back_slash`
XadillaX Feb 24, 2022
64832c1
src: return proper URLs from node_api_get_module_file_name
addaleax Jan 29, 2022
8b8d0fb
doc: update stale feature messages
mhdawson Mar 4, 2022
c6db0f0
src: fix unchecked return warning from coverity
mhdawson Mar 1, 2022
14f60fb
doc: readline `'line'` event emits final line
mattpr Mar 7, 2022
9440429
crypto: add CHECKs to remaining BIO_s_mem allocs
tniessen Mar 7, 2022
5ac6877
tools: fix web streams API links
mscdex Mar 7, 2022
24487be
meta: add dependencies label to label-pr-config
Mesteery Mar 7, 2022
3dcab2b
crypto: fix fingerprint string size calculation
tniessen Mar 7, 2022
27eb91d
build: downgrade Windows 8.1 and server 2012 R2 to experimental
targos Feb 24, 2022
60d5eed
build: use ccache in make-v8.sh on ppc64le and s390x
richardlau Mar 7, 2022
7e1e56a
url: trim leading and trailing C0 control chars
Trott Mar 8, 2022
24fc302
string_decoder: fix crash when calling __proto__.write()
RaisinTen Mar 8, 2022
9412441
doc: remove refs to old OpenSSL list-* commands
tniessen Mar 8, 2022
e8697cf
crypto: improve prime size argument validation
tniessen Mar 8, 2022
2f2f422
deps: upgrade npm to 8.5.3
npm-robot Mar 3, 2022
409c594
lib: fix AsyncResource.bind not using 'this' from the caller by default
rochdev Mar 8, 2022
4b198ff
doc: deprecate string coercion in `fs.write`, `fs.writeFileSync`
LiviaMedeiros Mar 8, 2022
f2676b9
src: use `emplace_back` instead of `push_back`
yashLadha Mar 8, 2022
4d70dc7
test: use global webcrypto for WPT tests
aduh95 Mar 8, 2022
6b004f1
src,crypto: avoid tristate Maybe<bool> in ExportJWKEcKey()
RaisinTen Mar 8, 2022
eacd456
http: make TCP noDelay enabled by default
ShogunPanda Mar 9, 2022
36fb790
crypto: fix X509Certificate toLegacyObject
tniessen Mar 9, 2022
e1fb6ae
crypto: prettify othername in PrintGeneralName
tniessen Mar 9, 2022
72c0c4b
2022-03-09, Version 17.7.0 (Current)
sxa Mar 8, 2022
fd5e70f
doc: fix version history for `net.Socket` and `net.Server`
aduh95 Mar 9, 2022
1f63837
debugger: correct typo in inspect_repl.js
cola119 Mar 9, 2022
cb3ce9f
deps: update undici to 4.15.1
targos Mar 7, 2022
e8ac3b4
build: rename tools workflow and add undici to it
targos Mar 7, 2022
a7164fd
doc: remove outdated timeout.unref content
meixg Mar 10, 2022
82342c2
http2: fix potential integer overflow
mhdawson Mar 10, 2022
a30e0de
esm: add runtime warning for specifier resolution flag
GeoffreyBooth Mar 10, 2022
72e83fc
src: perform minor cleanups on zlib code
addaleax Mar 10, 2022
f91950c
url: revert fix url.parse() for `@hostname`
aduh95 Mar 10, 2022
3f466d8
2022-03-10, Version 17.7.1 (Current)
sxa Mar 10, 2022
29c0522
deps: V8: cherry-pick c6f6626deb14
luyahan Mar 10, 2022
da79166
src: remove redundant buffer size check
tniessen Mar 10, 2022
bf357b7
test: add test case for reverted 17.7 regression
Trott Mar 11, 2022
d8c4e37
url: preserve null char in WHATWG URL errors
Trott Mar 11, 2022
de163d5
src: include internal/options in the snapshot
joyeecheung Mar 3, 2022
457567f
src: include crypto in the bootstrap snapshot
joyeecheung Mar 3, 2022
66db116
meta: update AUTHORS
nodejs-github-bot Mar 13, 2022
d645315
deps: cares: cherry-pick b5a3d96
bradh352 Mar 2, 2022
b481bee
doc: improve pipe description
mifi Mar 13, 2022
625c1e8
doc: clarify the meaning of legacy status
RaisinTen Mar 14, 2022
7612fc3
tools: update eslint to 8.11.0
nodejs-github-bot Mar 14, 2022
a718ef9
src: check return value of HMAC_Final
tniessen Mar 14, 2022
68626dc
esm: improve typings and code coverage
bmeck Mar 11, 2022
d90ceb2
src: avoid returning invalid value from hex2bin
tniessen Mar 14, 2022
afcfaa0
src: simplify bound check in ParseArrayIndex
tniessen Mar 14, 2022
82181bb
test: fix failure in test/sequential/test-heapdump.js
RaisinTen Mar 14, 2022
ed81dc7
tools: update lint-md-dependencies to rollup@2.70.0 unified@10.1.2
nodejs-github-bot Mar 14, 2022
7a601f9
tools: update doc to highlight.js@11.5.0 unified@10.1.2
nodejs-github-bot Mar 14, 2022
4aae536
src: check EC_POINT_get_affine_coordinates result
tniessen Mar 14, 2022
f524306
url: throw on NULL in IPv6 hostname
Trott Mar 14, 2022
6d0e92a
src: fix coverity warnings in node_file.cc
mhdawson Mar 9, 2022
f4d174a
test: improve _http_outgoing coverage
kuriyosh Mar 14, 2022
64f542f
test: improve _http_incoming.js coverage
kuriyosh Mar 14, 2022
c649573
doc: clarify path search in `child_process.spawn`
zobo Mar 14, 2022
4d072fe
doc: fix async iterable pipeline signal examples
tilgovi Mar 14, 2022
6f8c983
lib: refactor to use primordials in `lib/assert.js`
marsonya Mar 15, 2022
a01302b
esm: make extension-less errors in type:module actionable
bmeck Mar 15, 2022
d4d0b09
test: renew certificates for specific test
lpinca Mar 15, 2022
4586ac4
2022-03-15, Version 16.14.1 'Gallium' (LTS)
danielleadams Mar 3, 2022
32c86f5
doc: update base branch name for `nodejs/nodejs.org`
danielleadams Mar 16, 2022
6a51306
doc: add @ShogunPanda to collaborators
ShogunPanda Mar 16, 2022
6d3920d
stream: do cleanup when iterator is destroyed
KhooHaoYit Mar 16, 2022
82d896b
doc: revise async_hooks docs
Trott Mar 17, 2022
5359503
doc: remove unneeded lint disable comment
Trott Mar 17, 2022
f4b7f6d
doc: fix Embedder's Guide link to V8 official docs
aroyan Mar 17, 2022
0690b7f
deps: upgrade openssl sources to quictls/openssl-3.0.2+quic
hassaanp Mar 16, 2022
07ee796
deps: update archs files for quictls/openssl-3.0.2+quic
hassaanp Mar 16, 2022
f1b6d87
test: fix tests affected by OpenSSL update
mhdawson Mar 15, 2022
adbc94c
test: improve https_renew_cert.sh script
tniessen Mar 17, 2022
aead813
2022-03-17, Version 12.22.11 'Erbium' (LTS)
richardlau Mar 16, 2022
b1174f3
2022-03-17, Version 14.19.1 'Fermium' (LTS)
richardlau Mar 16, 2022
c7173ed
2022-03-17, Version 16.14.2 'Gallium' (LTS)
richardlau Mar 17, 2022
a66b9ca
2022-03-17, Version 17.7.2 (Current)
richardlau Mar 17, 2022
44131ad
worker: do not send message if port is closing
Trott Mar 16, 2022
3f3fa6d
http: trace http client by perf_hooks
theanarkh Mar 18, 2022
1134d8f
build: bump macOS deployment target to 10.15
richardlau Mar 18, 2022
184af1c
doc: document goal to have examples
mhdawson Mar 9, 2022
57529b2
src: convert hex2bin() into a regular function
RaisinTen Mar 18, 2022
6374f6b
test: give slow tests more time on Rasberry PIs
mhdawson Mar 17, 2022
cc64c93
doc: update instructions for openssl updates
mhdawson Mar 15, 2022
fff95ae
doc: add that chacha20-poly1305 is IETF version
tniessen Mar 19, 2022
76d85a8
deps: upgrade npm to 8.5.5
npm-robot Mar 17, 2022
46a0d0d
test,crypto: add and update empty passphrase regression tests
RaisinTen Mar 19, 2022
7fdb9d5
doc: improve README.md usability
Trott Mar 19, 2022
cc94563
crypto: fix auth tag length error when mode != GCM
tniessen Mar 20, 2022
0845e90
tools: update lint-md-dependencies to rollup@2.70.1
nodejs-github-bot Mar 20, 2022
c846ca5
meta: update AUTHORS
nodejs-github-bot Mar 20, 2022
419f02b
tools: make update-undici script executable
targos Mar 20, 2022
8f07452
tools: fix skip PR if CI is still running
meixg Mar 21, 2022
4e2fefc
doc: update property name
Trott Mar 21, 2022
298cc82
doc: unify import order in CCM example
tniessen Mar 21, 2022
df39fd6
src: refactor IsSupportedAuthenticatedMode
tniessen Mar 21, 2022
6559261
doc,test: clarify ChaCha20-Poly1305 usage
tniessen Mar 21, 2022
718be08
node-api: format Node-API related code
vmoroz Mar 18, 2022
87089bf
doc: standardize typography for _semantic versioning_
Trott Mar 21, 2022
da399a6
async_hooks: remove destroyed symbol on Promises
Flarna Mar 21, 2022
432d1b5
test: add initial test module
cjihrig Feb 9, 2022
3c4ee52
module,repl: support 'node:'-only core modules
cjihrig Mar 20, 2022
3579f6d
2022-03-22, Version 17.8.0 (Current)
bengl Mar 21, 2022
0f79a27
doc: make header smaller and dropdown click-driven when JS is on
ShogunPanda Mar 22, 2022
d10c717
src: suppress false coverity warning
mhdawson Mar 10, 2022
1c64d06
tools: bump cpplint to 1.6.0
Trott Mar 21, 2022
9680d7d
tools: refloat 7 Node.js patches to cpplint.py
Trott Oct 9, 2020
eb7b89c
lib: update class fields TODO in abort_controller.js
joyeecheung Feb 17, 2022
ea0668a
lib: use class fields in Event and EventTarget
joyeecheung Feb 17, 2022
c37fdac
lib: use class fields in observe.js
joyeecheung Feb 17, 2022
bfb4ca8
bootstrap: use SnapshotData to pass snapshot data around
joyeecheung Mar 15, 2022
aea4e1f
doc: add `trace_gc` to diagnostic tooling support document
tony-go Mar 23, 2022
e387269
doc: fix typo in async_context.md
AnupamaCodippily Mar 23, 2022
b476b1b
deps: update undici to 4.16.0
nodejs-github-bot Mar 23, 2022
094b2ae
doc: add link to section
Trott Mar 24, 2022
99c46a6
doc: change comma-splice to two sentences
Trott Mar 26, 2022
bc395d4
src: properly report exceptions from AddressToJS()
RaisinTen Mar 26, 2022
6e54851
doc: expand history for conditional exports changes in v12
gpoole Mar 26, 2022
934a3aa
crypto: make authTagLength optional for CC20P1305
tniessen Mar 27, 2022
9c2d124
meta: update AUTHORS
nodejs-github-bot Mar 27, 2022
01a2300
doc: clarify napi_finalize behavior
mildsunrise Mar 27, 2022
a7697c5
tools: update lint-md-dependencies to vfile-reporter@7.0.4
nodejs-github-bot Mar 27, 2022
3c97583
lib: update JSDoc for linting
Trott Mar 27, 2022
d143094
tools: update eslint to 8.12.0
nodejs-github-bot Mar 27, 2022
fe95507
doc: remove comma splice in events.md
Trott Mar 27, 2022
5a138b5
test,fs: add fs.rm() tests for .git directories
RaisinTen Mar 28, 2022
2e6d5e1
build: bump actions/checkout
UltiRequiem Mar 25, 2022
8a96ff7
doc: fix question promise API example
meixg Mar 28, 2022
dfdfd24
doc: update security release onboarding
joesepi Mar 28, 2022
00cb091
test: add trace-gc flag test
tony-go Mar 28, 2022
c6051a0
test: fix typos in test/parallel
daeyeon Mar 28, 2022
5a927ef
esm: emit experimental warnings in common place
JakobJingleheimer Mar 28, 2022
e520039
net,dns: trace tcp connection and dns by perf_hooks
theanarkh Mar 29, 2022
cff14bc
buffer: refactor `byteLength` to remove outdated optimizations
pd4d10 Mar 29, 2022
1000eb1
doc: suggest checkHost in checkServerIdentity docs
tniessen Mar 29, 2022
33cbdb3
src: address 3 useless call coverity warnings
mhdawson Mar 21, 2022
d320d45
tools: update GHA actions version
aduh95 Mar 30, 2022
f8ca5df
child_process: add env contents types in JSDoc
Trott Mar 30, 2022
eb3ca87
doc: add `stability` class to legacy status description
danielroe Mar 30, 2022
85f679f
doc: fix comment text in async_hooks example
Trott Mar 30, 2022
87a76d9
src,crypto: remove uses of AllocatedBuffer from crypto_dh.cc
RaisinTen Mar 27, 2022
11c0da6
src: remove unnecessary static qualifier in crypto_dh.cc
RaisinTen Mar 27, 2022
f2a22ef
src,crypto: handle empty maybe correctly in crypto_dh.cc
RaisinTen Mar 27, 2022
1600869
test: fix comments in test files
daeyeon Mar 31, 2022
8a297ba
bootstrap: refresh options in pre-execution
joyeecheung Jun 11, 2021
37aee80
build: add --node-snapshot-main configure option
joyeecheung Mar 24, 2022
c131fbb
bootstrap: make I/O streams work with user-land snapshot
joyeecheung Mar 25, 2022
01f6b95
bootstrap: run inspector and event loop in snapshot builder
joyeecheung Mar 24, 2022
7319419
bootstrap: reset process._exit and process.exitCode in pre-execution
joyeecheung Mar 26, 2022
605a01b
tools: fixed bug causing JSON format to be broken
mawaregetsuka Mar 31, 2022
1e5bafb
doc: add suggestion for OpenSSL only sec releases
mhdawson Mar 24, 2022
8dbdca8
doc: fix internal link in collaborator-guide.md
daeyeon Apr 1, 2022
d484cba
doc: guide towards x509.fingerprint256
tniessen Apr 1, 2022
fd18b0e
doc: remove extraneous comma
Trott Apr 1, 2022
b9e9797
doc: document breaking change in `http.IncomingMessage` `'close'` event
ShogunPanda Apr 1, 2022
4cbb5d1
src: fix typo in InspectorIoDelegate constructor
cola119 Apr 1, 2022
bcc68c3
doc: consolidate CI sections
Trott Apr 1, 2022
127da0f
test: fix typo in common/wpt.js
eltociear Apr 2, 2022
53da438
doc: add @meixg to collaborators
meixg Apr 2, 2022
18bd02f
crypto: fix webcrypto derive key lengths
panva Apr 2, 2022
2dea9cc
doc: add introduction sentence for CJS
aduh95 Apr 2, 2022
bba82cd
buffer: fix `atob` input validation
aduh95 Apr 2, 2022
eda2498
test: add test for exception handlings in debugger
cola119 Apr 2, 2022
46f54bd
test: improve `FileHandle.prototype.write` coverage
aduh95 Apr 2, 2022
7c8d98e
test: pass data into napi_create_external
joyeecheung Apr 2, 2022
302fd02
lib: improve the coverage of the validator
mawaregetsuka Apr 2, 2022
059b890
doc: remove util.promisify() content in readline.md
Trott Apr 3, 2022
70dae24
doc: update DEP0102 text
Trott Apr 1, 2022
c9bb345
doc: simplify recommendation in webcrypto.md
Trott Apr 1, 2022
b717795
doc: clarify recommendations in stream.md
Trott Apr 1, 2022
5618851
meta: update AUTHORS
nodejs-github-bot Apr 3, 2022
b07dc4d
doc: simplify recommendations in process.md
Trott Apr 1, 2022
48dbec8
test: remove hack for `atob` and `btoa` WPT tests
aduh95 Apr 3, 2022
95f94cf
test: improve lib/internal/readline/promises.js coverage
fossamagna Apr 3, 2022
4fa6c89
crypto: cleanup webcrypto jwk code
panva Apr 3, 2022
e12cfd8
doc: aes webcrypto unwrap is not a node-specific extensions
panva Apr 3, 2022
5d0eb10
crypto: do not add undefined hash in webcrypto normalizeAlgorithm
panva Apr 3, 2022
1c69dfe
src: add proper mutexes for accessing FIPS state
addaleax Apr 3, 2022
84ea252
doc: change "OCSP Request" to "OCSP request"
tniessen Apr 3, 2022
d80f07b
build: set stale action back to running nightly
mhdawson Apr 3, 2022
ba9e169
meta: move one or more collaborators to emeritus
nodejs-github-bot Apr 3, 2022
b5f0b49
os: avoid unnecessary usage of var
VoltrexKeyva Apr 3, 2022
154fa41
lib: source maps filter null prefix
fabiancook Apr 3, 2022
ae1f6db
doc: fix documentation of `FileHandle.prototype.appendFile`
aduh95 Apr 3, 2022
d83e7a0
doc: remove faulty justification for 128-bit AES
tniessen Apr 3, 2022
df20947
build: consolidate JS and md linting GitHub Actions
Trott Apr 3, 2022
e6a7300
process: disallow some uses of Object.defineProperty() on process.env
himself65 Apr 4, 2022
560cbc5
stream: expose web streams globals, remove runtime experimental warning
aduh95 Apr 4, 2022
9256728
timers: refactor internal classes to ES2015 syntax
ttzztztz Apr 4, 2022
aed18df
crypto: cleanup validation
VoltrexKeyva Apr 4, 2022
49547ab
lib: prepare files for no-var lint rule
Trott Apr 2, 2022
b07894d
tools: enable no-var ESLint rule for lib
Trott Apr 2, 2022
0c9273d
fs: fix write methods param validation and docs
LiviaMedeiros Apr 4, 2022
54819f0
test_runner: support 'only' tests
cjihrig Apr 4, 2022
46b633f
buffer: improve Blob constructor error message when passing a string
meixg Apr 4, 2022
d58f408
meta: update .mailmap and AUTHORS
Trott Apr 4, 2022
9b3aad1
build: windows/arm64 native compilation support
niyas-sait Apr 5, 2022
08aab07
doc: remove obsolete stream API selection text
Trott Apr 5, 2022
3f526c1
2022-04-05, Version 12.22.12 'Erbium' (LTS)
richardlau Mar 30, 2022
818284b
build: remove precompiled header and debug information for host builds
niyas-sait Apr 5, 2022
0187bc5
v8: make v8.writeHeapSnapshot() error codes consistent
RaisinTen Apr 5, 2022
9191b42
doc: simplify Http2Stream encoding text
Trott Apr 6, 2022
85a65c3
doc: delete chakra tt from diagnostic tooling support tiers
tony-go Apr 6, 2022
c7ac11f
deps: update undici to 5.0.0
nodejs-github-bot Apr 3, 2022
2949249
meta: move one or more collaborators to emeritus
nodejs-github-bot Apr 4, 2022
2468db1
tools: update lint-md-dependencies to @rollup/plugin-commonjs@21.0.3
nodejs-github-bot Apr 7, 2022
646e057
doc: update AIX minimum supported arch
richardlau Apr 7, 2022
44fdf95
node-api,src: fix module registration in MSVC C++
vmoroz Mar 24, 2022
28d8614
http: document that ClientRequest inherits from OutgoingMessage
kcak11 Apr 7, 2022
3c75264
2022-04-07, Version 17.9.0 (Current)
juanarbol Apr 6, 2022
8055c7b
doc: copyedit corepack.md
Trott Apr 6, 2022
4fade6a
doc: fix brackets position
LiviaMedeiros Apr 8, 2022
c08a361
doc: add history entries for DEP0162 on `fs.md`
aduh95 Apr 8, 2022
0bac547
fs: runtime deprecate string coercion in `fs.write`, `fs.writeFileSync`
LiviaMedeiros Apr 8, 2022
d36b60e
readline: fix question still called after closed
meixg Apr 8, 2022
58e645d
stream: remove thenable support
ronag Apr 8, 2022
ec5a359
doc: add missing word in rootCertificates section
tniessen Apr 8, 2022
b99bb57
tools: update gyp-next to v0.12.1
targos Apr 8, 2022
dfc2dc8
doc: add note about header values encoding
ShogunPanda Apr 6, 2022
cefb645
doc: add styleguide
bnb Nov 29, 2021
f8c2fab
doc: fix up styling of styleguide.md
bnb Nov 29, 2021
469577c
doc: quarantine examples in styleguide
bnb Nov 29, 2021
a3d7f0b
doc: run make format-md
bnb Nov 29, 2021
5335935
fixup! doc: add styleguide
DerekNonGeneric Dec 3, 2021
f478e1b
fixup! doc: add styleguide
DerekNonGeneric Dec 3, 2021
d746dbd
fixup! doc: add styleguide
DerekNonGeneric Dec 3, 2021
77dcc3b
feat: update existing style-guide
bnb Jan 27, 2022
ad8cb38
chore: remove unused additional document
bnb Apr 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src: skip revoke_data_object if uuid is not found
Fix: nodejs#42206

PR-URL: nodejs#42212
Fixes: nodejs#42206
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
meixg authored Mar 6, 2022
commit 3d4f3ca5eb598107eab8e4f4ee775e431e8e1bff
3 changes: 2 additions & 1 deletion doc/api/url.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ added: v16.7.0
* `id` {string} A `'blob:nodedata:...` URL string returned by a prior call to
`URL.createObjectURL()`.

Removes the stored {Blob} identified by the given ID.
Removes the stored {Blob} identified by the given ID. Attempting to revoke a
ID that isn’t registered will silently fail.

### Class: `URLSearchParams`

Expand Down
4 changes: 3 additions & 1 deletion src/node_blob.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ void BlobBindingData::store_data_object(
}

void BlobBindingData::revoke_data_object(const std::string& uuid) {
CHECK_NE(data_objects_.find(uuid), data_objects_.end());
if (data_objects_.find(uuid) == data_objects_.end()) {
return;
}
data_objects_.erase(uuid);
CHECK_EQ(data_objects_.find(uuid), data_objects_.end());
}
Expand Down
4 changes: 4 additions & 0 deletions test/parallel/test-blob-createobjecturl.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const assert = require('assert');
Buffer.from(await otherBlob.arrayBuffer()).toString(),
'hello');
URL.revokeObjectURL(id);

// should do nothing
URL.revokeObjectURL(id);

assert.strictEqual(resolveObjectURL(id), undefined);

// Leaving a Blob registered should not cause an assert
Expand Down