3 Commits
Author SHA1 Message Date
James M Snell 8484ab2a6c buffer: avoid creating the backing store in the thread
Fixes: https://github.com/nodejs/node/issues/37030

PR-URL: https://github.com/nodejs/node/pull/37052
Backport-PR-URL: https://github.com/nodejs/node/pull/39704
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2021-08-31 10:55:07 -04:00
Joyee Cheung bad990c934 src: use BaseObject::kInteralFieldCount in Blob
Instead of hard-coding the field count.

PR-URL: https://github.com/nodejs/node/pull/36991
Backport-PR-URL: https://github.com/nodejs/node/pull/39704
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
2021-08-31 10:55:07 -04:00
James M Snell df37c106a7 buffer: introduce Blob
The `Blob` object is an immutable data buffer. This is a first step
towards alignment with the `Blob` Web API.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: https://github.com/nodejs/node/pull/36811
Backport-PR-URL: https://github.com/nodejs/node/pull/39704
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2021-08-31 10:55:06 -04:00