Merge pull request #1899 from kirkouimet/guard-for-in-loop

Guarding against polluted Object.prototypes
This commit is contained in:
Cheng Zhao 2015-06-08 22:45:43 +08:00
commit 1ae8bed96a

View file

@ -14,7 +14,7 @@ getOrCreateArchive = (p) ->
# Clean cache on quit.
process.on 'exit', ->
archive.destroy() for p, archive of cachedArchives
archive.destroy() for own p, archive of cachedArchives
# Separate asar package's path from full path.
splitPath = (p) ->