assertObjectMatch
is not able to test target object's own __proto__
#6341
Labels
assertObjectMatch
is not able to test target object's own __proto__
#6341
Describe the bug
As the title says.
assertEquals
does work expectedly butassertObjectMatch
does not.Steps to Reproduce
Create a file named
test.ts
with the content being:Execute the command
deno test --unstable-unsafe-proto test.ts
See error is like this:
And the diff is even unhelpful:
Expected behavior
The test case successfully passes.
For normal users the infamous
__proto__
should be disabled by default, but as a library author I want to test our APIs are immune to the behavior, but currently I can't useassignObjectMatch
for it due to this bug.Environment
The text was updated successfully, but these errors were encountered: