endel / increase-memory-limit

Increase memory limit for local node binaries ("max-old-space-size")
http://npmjs.com/package/increase-memory-limit
MIT License
267 stars 26 forks source link

added check for self. Fixed '10240' issue when running the module locally #8

Closed mannyyang closed 7 years ago

mannyyang commented 7 years ago

When running the module locally through the npm script, it throws a 10240: image

I think this is because it tries to access itself, but fails to do so. I added a conditional to check whether it contains its own name or not.

endel commented 7 years ago

Great, thanks @mannyyang! Published 1.0.4 with your patch.