Skip to content

Commit

Permalink
prefer to use globalThis & fallback to this
Browse files Browse the repository at this point in the history
fixes mholt#975
  • Loading branch information
btakita committed Mar 1, 2023
1 parent c32ee47 commit a6f1802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papaparse.js
Expand Up @@ -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';

Expand Down

0 comments on commit a6f1802

Please sign in to comment.