MCPcopy Create free account
hub / github.com/WebReflection/neverland / createHook

Function createHook

index.js:1717–1741  ·  view source on GitHub ↗
(info, entry)

Source from the content-addressed store, hash-verified

1715 };
1716
1717 var createHook = function createHook(info, entry) {
1718 return augmentor$1(function () {
1719 var hole = entry.fn.apply(null, arguments);
1720
1721 if (hole instanceof Hole) {
1722 unrollHole(info, hole);
1723 updateEntry(entry, view(entry, hole));
1724 } else updateEntry(entry, hole);
1725
1726 try {
1727 return entry.node;
1728 } finally {
1729 if (update$1) {
1730 update$1 = false;
1731 var p = info;
1732
1733 while (p.p) {
1734 p = p.p;
1735 }
1736
1737 render$1(p.w, p.W);
1738 }
1739 }
1740 });
1741 };
1742
1743 var createCache$1 = function createCache(p) {
1744 return {

Callers 1

unroll$1Function · 0.70

Calls 5

augmentor$1Function · 0.70
unrollHoleFunction · 0.70
updateEntryFunction · 0.70
viewFunction · 0.70
render$1Function · 0.70

Tested by

no test coverage detected