diff --git a/papaparse.js b/papaparse.js index 6faf6b5a..98bbc53c 100755 --- a/papaparse.js +++ b/papaparse.js @@ -31,7 +31,7 @@ License: MIT // in strict mode we cannot access arguments.callee, so we need a named reference to // stringify the factory method for the blob worker // eslint-disable-next-line func-name -}(this, function moduleFactory() +}(typeof globalThis !== 'undefined' ? globalThis : this, function moduleFactory() { 'use strict';