* Wraps the PostHTMLTree within an object using a getter to render HTML on demand. * * @private * * @param {Function} render * @param {Array} tree * @returns {Object<{html: String, tree: Array}>}
(render, tree)
| 313 | * @returns {Object<{html: String, tree: Array}>} |
| 314 | */ |
| 315 | function lazyResult (render, tree) { |
| 316 | return { |
| 317 | get html () { |
| 318 | return render(tree, tree.options) |
| 319 | }, |
| 320 | tree, |
| 321 | messages: tree.messages |
| 322 | } |
| 323 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…