diff options
Diffstat (limited to 'ext/node/polyfills/internal/blob.mjs')
-rw-r--r-- | ext/node/polyfills/internal/blob.mjs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/blob.mjs b/ext/node/polyfills/internal/blob.mjs new file mode 100644 index 000000000..1b685fad4 --- /dev/null +++ b/ext/node/polyfills/internal/blob.mjs @@ -0,0 +1,7 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +// Node's implementation checks for a symbol they put in the blob prototype +// Since the implementation of Blob is Deno's, the only option is to check the +// objects constructor +export function isBlob(object) { + return object instanceof Blob; +} |