for (let j = 0, jj = postHooks.length; j < jj; ++j) {
    postHooks[j].call(doc);
  }