diff --git a/repro.js b/repro.js index 729a39c288..280be1514f 100644 --- a/repro.js +++ b/repro.js @@ -1 +1,5 @@ -console.log(Bun.deepEquals(Object(Symbol()), Object(Symbol()))); +const str1 = Object("abc"); +const str2 = Object("abc"); +str2.slow = true; + +console.log(Bun.deepEquals(str1, str2)); // should be 'false' diff --git a/test/js/node/test/parallel/test-util-isDeepStrictEqual.js b/test/js/node/test/parallel/test-util-isDeepStrictEqual.js index 9c9c2b98cd..2b9786b48a 100644 --- a/test/js/node/test/parallel/test-util-isDeepStrictEqual.js +++ b/test/js/node/test/parallel/test-util-isDeepStrictEqual.js @@ -31,7 +31,7 @@ function notUtilIsDeepStrict(a, b) { utilIsDeepStrict(Object(2), Object(2)); utilIsDeepStrict(boxedString, Object('test')); boxedString.slow = true; - // notUtilIsDeepStrict(boxedString, Object('test')); // TODO + notUtilIsDeepStrict(boxedString, Object('test')); boxedSymbol.slow = true; notUtilIsDeepStrict(boxedSymbol, {}); utilIsDeepStrict(Object(BigInt(1)), Object(BigInt(1)));