code: function instanceIndex(context) {
    for (var i = 0; i < instances.length; i++) {
      var instance = instances[i];
      if (instance.conversionContext === context ||
          instance.executionContext === context) {
        return i;
      }
    }
    return -1;
  }
docs: An indexOf that looks-up both types of context