Open
Description
In some (rare) cases function instanceOf may fall into an infinite loop, which - in my case - was possible to eliminate by adding additional conditional break.
while (constructor){
if (constructor === object) return true;
if (constructor === constructor.parent) break; // this line should be added
constructor = constructor.parent;
}
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Metadata
Metadata
Assignees
Labels
No labels