]> khamidou — GitHub mirrors - electron.git/commitdiff
Guarding against polluted Object.prototypes
authorKirk Ouimet <kirk@kirkouimet.com>
Mon, 8 Jun 2015 06:59:49 +0000 (23:59 -0700)
committerKirk Ouimet <kirk@kirkouimet.com>
Mon, 8 Jun 2015 06:59:49 +0000 (23:59 -0700)
atom/common/lib/asar.coffee

index f70d2c456d789ed6a722d526dfd9a3444e9889ee..a17ac729253d6cf75ab6a7971fac622bf2701c8e 100644 (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) ->