MCPcopy Create free account
hub / github.com/ampproject/amphtml / renderInlineResult

Function renderInlineResult

validator/cpp/engine/wasm/validator.js:136–143  ·  view source on GitHub ↗

* @param {!Object} validationResult * @param {string} filename to use in rendering error messages. * @param {string} inputContents * @return {string}

(validationResult, filename, inputContents)

Source from the content-addressed store, hash-verified

134 * @return {string}
135 */
136function renderInlineResult(validationResult, filename, inputContents) {
137 asserts.assertExists(wasmModule, `WebAssembly is uninitialized`);
138 return wasmModule.renderInlineResult(
139 validationResult[PB_BASE64],
140 filename,
141 inputContents,
142 );
143}
144
145/**
146 * Checks if the given URL is an AMP cache URL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected