Browse Source

Return an empty object when failing to determine global scope.

pull/370/head
Sergi Almacellas Abellana 8 years ago
parent
commit
ff398191f2
  1. 3
      papaparse.js

3
papaparse.js

@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
throw new Error('Cannot determine global object');
// When running tests none of the above have been defined
return {};
})();

Loading…
Cancel
Save