Skip to content

Commit e7b2430

Browse files
committed
feat: Replaced the 'global' keyword by 'globalThis' (closes #75)
1 parent 17ee8d7 commit e7b2430

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.jshintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"it": false,
1616
"before": false,
1717
"Promise": false,
18-
"ImageData": false
18+
"ImageData": false,
19+
"globalThis": false
1920
}
2021
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Tu run tests, use the following command:
8080

8181
* **[NEXT]** (changes on master that have not been released yet):
8282

83-
* Nothing yet ;)
83+
* feat: Replaced the `global` keyword by `globalThis` (@flozz, #75)
8484

8585
* **v2.2.0:**
8686

lib/helpers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var helpers = {
109109
// tranferable: TypedArray
110110
} else {
111111
for (var t = 0 ; t < typedArray.length ; t++) {
112-
if (args[i] instanceof global[typedArray[t]]) {
112+
if (args[i] instanceof globalThis[typedArray[t]]) {
113113
transferable.push(args[i].buffer);
114114
break;
115115
}

0 commit comments

Comments
 (0)