This commit is contained in:
pfg
2025-05-09 19:59:14 -07:00
parent 16518f54a2
commit ecbb0384bc
2 changed files with 6 additions and 2 deletions

View File

@@ -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'

View File

@@ -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)));