var Registry = function(Constructor) {
  this.Item = Constructor;
  this.items = {};
};

function construct(constructor, args) {
  var f;
  function F() {
    return constructor.apply(this, args);
  }
  F.prototype = constructor.prototype;
  f = new F();
  f.constructor = constructor;
  return f;
}

Registry.prototype.define = function(definition) {
  return construct(this.Item, Array.prototype.slice.call(arguments));
};

Registry.prototype.register = function(name, definition) {
  if(!(definition instanceof this.Item)) {
    definition = this.define.apply(this, Array.prototype.slice.call(arguments, 1));
  }

  this.items[name] = definition;
};

Registry.prototype.update = Registry.prototype.register;

Registry.prototype.list = function() {
  return this.items;
};

Registry.prototype.keys = function() {
  return Object.keys(this.items);
};

Registry.prototype.values = function() {
  return Object.keys(this.items)
    .map(function(key) {
      return this.items[key];
    }
  );
};

Registry.prototype.get = function(name) {
  return this.items[name];
};

Registry.prototype.remove = function(name) {
  delete this.items[name];
};

module.exports = Registry;

@@ -479,16 +479,19 @@
 ion) %7B%0A 
+ //
  if(!(de
@@ -525,16 +525,19 @@
 em)) %7B%0A 
+ //
    defin
@@ -612,16 +612,19 @@
 , 1));%0A 
+ //
  %7D%0A%0A  th

Remove instanceof check