Permalink
Browse files

Don't mangle the prototype chain of arrays. Closes #1

  • Loading branch information...
1 parent 02a8e76 commit a6185ebde79881e054ec32209605eb002d8f1da5 @jonpacker jonpacker committed Oct 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 csc.js
View
@@ -5,7 +5,7 @@ module.exports = function(config, domain) {
var services = Object.create(config);
Object.keys(config).forEach(function(key) {
- if (typeof config[key] != 'object') return;
+ if (typeof config[key] != 'object' || Array.isArray(config[key])) return;
config[key].__proto__ = services;
if (config[key].port == null) return;
services[key] = url.format({

0 comments on commit a6185eb

Please sign in to comment.