-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Line 1863 in bba906e
if (!(test && test.a === test.b && test.a instanceof Error && test.stack === error.stack)) return false; |
The bug in the test
var error = new Error();
var test = structuredClone({ a: error, b: error });
if (!(... && test.stack === error.stack)) return false;
test.stack
will always be undefined
and error.stack
will always be an array.
I think the test intended use test.a.stack
? But I am not sure as it would seem that test.a === error
would be a better test.