-
Notifications
You must be signed in to change notification settings - Fork 298
Cannot declare a parameter named 'mask' as it shadows the name of a strict mode function #124
Comments
Hi @Otonomos, thank your catching that! That actually comes from the module ip, which is a dependency of multiaddr. One way to solve it, would be to submit a PR to change it on the ip module, however, I believe the best way is to make browserify aware that it should obfuscate any function that has that name. This can be achieve by creating a browserify transform for this purpose, through https://www.npmjs.com/package/browserify#b-transform-tr-opts, or make it part of browserify itself and it might be very valuable for other modules too. Would you be availble to create that transform/make the patch? |
We should probably warn the ip module people too
|
…h function name (in Safari)
Hi,
|
I am using this package in combination with Meteor. The latest version will crash in Safari with the following error: Cannot declare a parameter named 'mask' as it shadows the name of a strict mode function. So far, I traced it back to this function on line 30299 in the ipfsapi.js:
ip.mask = function mask(addr, mask) {
The text was updated successfully, but these errors were encountered: