Skip to content

Commit

Permalink
[DataStructure] fix: use globalThis instead of global
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Sep 9, 2024
1 parent 838b025 commit 7748b70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,4 @@ BTree.COMPARISON_EQUAL = 0;
BTree.COMPARISON_LESSER = -1;
BTree.COMPARISON_GREATER = 1;

global.BTree = BTree;
globalThis.BTree = BTree;
2 changes: 1 addition & 1 deletion src/HashTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,4 +421,4 @@ class HashTable extends mix(Object, GenericCollectionTrait) {
}
}

global.HashTable = HashTable;
globalThis.HashTable = HashTable;
2 changes: 1 addition & 1 deletion src/LinkedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,4 @@ class LinkedList extends mix(Object, GenericCollectionTrait) {
}
}

global.LinkedList = LinkedList;
globalThis.LinkedList = LinkedList;
2 changes: 1 addition & 1 deletion src/PriorityQueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ class PriorityQueue extends mix(Object, GenericCollectionTrait) {
}
}

global.PriorityQueue = PriorityQueue;
globalThis.PriorityQueue = PriorityQueue;

0 comments on commit 7748b70

Please sign in to comment.