Skip to content

Commit 10e2a25

Browse files
committed
could not use optional changing yet
1 parent c281ad2 commit 10e2a25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ export default class Blob {
239239

240240
static [Symbol.hasInstance](object) {
241241
return (
242-
typeof object?.constructor === 'function' &&
242+
typeof object === 'object' &&
243+
typeof object.constructor === 'function' &&
243244
(
244245
typeof object.stream === 'function' ||
245246
typeof object.arrayBuffer === 'function'

0 commit comments

Comments
 (0)