From ce2f5c2de8180209d8dd3ae0ed39bb59147cc459 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Tue, 21 Dec 2021 12:05:26 -0800 Subject: [PATCH] buffer: expose Blob as a global `Blob` is defined as a global in the spec. We have WPT's for it, and it's graduated experimental. Time to expose it as a global. Signed-off-by: James M Snell PR-URL: https://github.com/nodejs/node/pull/41270 Reviewed-By: Antoine du Hamel Reviewed-By: Mohammed Keyvanzadeh Reviewed-By: Matteo Collina Reviewed-By: Robert Nagy --- .eslintrc.js | 1 + doc/api/buffer.md | 2 +- doc/api/globals.md | 10 ++++++++++ lib/.eslintrc.yaml | 2 ++ lib/internal/bootstrap/node.js | 7 +++++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 91a9623c6d905f..890c1663025cf8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -363,6 +363,7 @@ module.exports = { BigInt: 'readable', BigInt64Array: 'readable', BigUint64Array: 'readable', + Blob: 'readable', DOMException: 'readable', Event: 'readable', EventTarget: 'readable', diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 9ea44757b12911..80a97ababd2d06 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -458,7 +458,7 @@ added: - v14.18.0 changes: - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/00000 + pr-url: https://github.com/nodejs/node/pull/41270 description: No longer experimental. --> diff --git a/doc/api/globals.md b/doc/api/globals.md index bb3ca66930e52d..f3a1d46d251300 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -199,6 +199,16 @@ added: v17.3.0 If `abortSignal.aborted` is `true`, throws `abortSignal.reason`. +## Class: `Blob` + + + + + +See {Blob}. + ## Class: `Buffer`