Skip to content

Commit 81bfb45

Browse files
committed
prefer to use globalThis & fallback to this
fixes #975
1 parent aa00468 commit 81bfb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

papaparse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ License: MIT
2828
// in strict mode we cannot access arguments.callee, so we need a named reference to
2929
// stringify the factory method for the blob worker
3030
// eslint-disable-next-line func-name
31-
}(this, function moduleFactory()
31+
}(typeof globalThis !== 'undefined' ? globalThis : this, function moduleFactory()
3232
{
3333
'use strict';
3434

0 commit comments

Comments
 (0)