From 81bfb4568c1e7aed4468f5675d739c455749e41f 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 f5a1f8ff..6bc3c409 100755 --- a/papaparse.js +++ b/papaparse.js @@ -28,7 +28,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';