(lighter)
| 129 | } |
| 130 | |
| 131 | function createFor(lighter) { |
| 132 | const cache = umap(new WeakMap); |
| 133 | return ( |
| 134 | (entry, id) => { |
| 135 | const store = cache.get(entry) || cache.set(entry, create(null)); |
| 136 | const info = store[id] || (store[id] = createCache(null)); |
| 137 | return ( |
| 138 | (template, ...values) => { |
| 139 | unrollValues(info, values); |
| 140 | return lighter.for(entry, id)(template, ...values); |
| 141 | } |
| 142 | ); |
| 143 | } |
| 144 | ); |
| 145 | } |
| 146 | |
| 147 | function tta() { |
| 148 | let out = [], i = 0, {length} = arguments; |
no test coverage detected