diff options
| author | Uri Shaked | 2020-07-16 22:25:32 +0300 |
|---|---|---|
| committer | Uri Shaked | 2020-07-16 23:19:21 +0300 |
| commit | 1ec47e14ad01779a60a132d1935988f0037da416 (patch) | |
| tree | 9970f2e50e6aee58fd246ee2c1f2c375db9d0797 /jsdom-workaround.js | |
| parent | fix(demo): fix eslint warning (diff) | |
| download | avr8js-1ec47e14ad01779a60a132d1935988f0037da416.tar.gz avr8js-1ec47e14ad01779a60a132d1935988f0037da416.tar.bz2 avr8js-1ec47e14ad01779a60a132d1935988f0037da416.zip | |
test: fix broken test on node 10.x
Diffstat (limited to 'jsdom-workaround.js')
| -rw-r--r-- | jsdom-workaround.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jsdom-workaround.js b/jsdom-workaround.js new file mode 100644 index 0000000..63e15a8 --- /dev/null +++ b/jsdom-workaround.js @@ -0,0 +1,4 @@ +// Workaround for jsdom issue: https://github.com/jsdom/jsdom/issues/2961 +if (typeof globalThis === 'undefined') { + global.globalThis = global; +} |
