diff --git a/sdk/core/core-http/src/serializer.ts b/sdk/core/core-http/src/serializer.ts index e4c74fc50efc..9297d4713fe2 100644 --- a/sdk/core/core-http/src/serializer.ts +++ b/sdk/core/core-http/src/serializer.ts @@ -362,7 +362,7 @@ function serializeBasicTypes(typeName: string, objectName: string, value: any): objectType !== "function" && !(value instanceof ArrayBuffer) && !ArrayBuffer.isView(value) && - !(typeof Blob === "function" && value instanceof Blob) + !((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob) ) { throw new Error( `${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`