From 07603f6451d22d852939afcf690dc61f9cc82880 Mon Sep 17 00:00:00 2001 From: Brian Takita Date: Wed, 1 Mar 2023 05:22:11 -0500 Subject: [PATCH] prefer to use globalThis & fallback to this fixes https://github.com/mholt/PapaParse/issues/975 --- papaparse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';