| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 99c18f4 commit cea76db
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -363,6 +363,7 @@ module.exports = { | |||
| 363 | 363 | BigInt: 'readable', | |
| 364 | 364 | BigInt64Array: 'readable', | |
| 365 | 365 | BigUint64Array: 'readable', | |
| 366 | + Blob: 'readable', | ||
| 366 | 367 | DOMException: 'readable', | |
| 367 | 368 | Event: 'readable', | |
| 368 | 369 | EventTarget: 'readable', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -458,7 +458,7 @@ added: | |||
| 458 | 458 | - v14.18.0 | |
| 459 | 459 | changes: | |
| 460 | 460 | - version: REPLACEME | |
| 461 | - pr-url: https://github.com/nodejs/node/pull/00000 | ||
| 461 | + pr-url: https://github.com/nodejs/node/pull/41270 | ||
| 462 | 462 | description: No longer experimental. | |
| 463 | 463 | --> | |
| 464 | 464 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,6 +199,16 @@ added: v17.3.0 | |||
| 199 | 199 | ||
| 200 | 200 | If `abortSignal.aborted` is `true`, throws `abortSignal.reason`. | |
| 201 | 201 | ||
| 202 | + ## Class: `Blob` | ||
| 203 | + | ||
| 204 | + <!-- YAML | ||
| 205 | + added: REPLACEME | ||
| 206 | + --> | ||
| 207 | + | ||
| 208 | + <!-- type=global --> | ||
| 209 | + | ||
| 210 | + See {Blob}. | ||
| 211 | + | ||
| 202 | 212 | ## Class: `Buffer` | |
| 203 | 213 | ||
| 204 | 214 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,8 @@ rules: | |||
| 37 | 37 | # disabled with --no-harmony-atomics CLI flag. | |
| 38 | 38 | - name: Atomics | |
| 39 | 39 | message: "Use `const { Atomics } = globalThis;` instead of the global." | |
| 40 | + - name: Blob | ||
| 41 | + message: "Use `const { Blob } = require('buffer');` instead of the global." | ||
| 40 | 42 | - name: Buffer | |
| 41 | 43 | message: "Use `const { Buffer } = require('buffer');` instead of the global." | |
| 42 | 44 | - name: DOMException | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -444,6 +444,7 @@ function setupGlobalProxy() { | |||
| 444 | 444 | ||
| 445 | 445 | function setupBuffer() { | |
| 446 | 446 | const { | |
| 447 | + Blob, | ||
| 447 | 448 | Buffer, | |
| 448 | 449 | atob, | |
| 449 | 450 | btoa, | |
@@ -456,6 +457,12 @@ function setupBuffer() { | |||
| 456 | 457 | delete bufferBinding.zeroFill; | |
| 457 | 458 | ||
| 458 | 459 | ObjectDefineProperties(globalThis, { | |
| 460 | + 'Blob': { | ||
| 461 | + value: Blob, | ||
| 462 | + enumerable: false, | ||
| 463 | + writable: true, | ||
| 464 | + configurable: true, | ||
| 465 | + }, | ||
| 459 | 466 | 'Buffer': { | |
| 460 | 467 | value: Buffer, | |
| 461 | 468 | enumerable: false, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments