mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
292 stars 186 forks source link

TextEncoder (new) #19

Closed sainsb closed 8 years ago

sainsb commented 9 years ago

Using the browser version : Chrome: Uncaught TypeError: Failed to construct 'TextEncoder': Please use the 'new' operator, this DOM object constructor cannot be called as a function.

Firefox: TypeError: Constructor TextEncoder requires 'new'

btfou commented 9 years ago

Yep. Adding new to TextEncoder here: https://github.com/mapbox/shp-write/blob/master/shpwrite.js#L3922 and here: https://github.com/mapbox/shp-write/blob/master/shpwrite.js#L4694 and it works.

tmcw commented 8 years ago

Those are built files - this problem looks like it's upstream in jszip

tmcw commented 8 years ago

upstream: https://github.com/Stuk/jszip/issues/179