Skip to content

Commit

Permalink
make isPosition more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-marechal committed Mar 6, 2023
1 parent e291789 commit 62c8992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/plugin-ext/src/plugin/types-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ export class Position {
if (!other) {
return false;
}
if (typeof other !== 'object' || Array.isArray(other)) {
return false;
}
if (other instanceof Position) {
return true;
}
Expand Down

0 comments on commit 62c8992

Please sign in to comment.