denoland / std

The Deno Standard Library
https://jsr.io/@std
MIT License
3.21k stars 621 forks source link

assertEquals doesn't correctly compare Blobs #6202

Open EvanHahn opened 19 hours ago

EvanHahn commented 19 hours ago

Describe the bug

assertEquals doesn't consider value-equal Blobs to be equal.

Steps to Reproduce

Run the following code:

import { assertEquals } from "jsr:@std/assert";
assertEquals(new Blob(["foo"]), new Blob(["foo"]));

Expected behavior

This should not throw an error. Instead, it throws AssertionError: Values are not equal.

Environment