* Provided the contents of the validator_wasm.js file, e.g. as downloaded from * 'https://cdn.ampproject.org/v0/validator_wasm.js', returns a new validator * instance. The tradeoff between this function and getInstance() is that this * function is synchronous but requires the contents of the vali
(validatorJsContents)
| 327 | * @export |
| 328 | */ |
| 329 | function newInstance(validatorJsContents) { |
| 330 | return new Validator(validatorJsContents); |
| 331 | } |
| 332 | exports.newInstance = newInstance; |
| 333 | |
| 334 | // A note on emitting output to the console and process exit status: |
nothing calls this directly
no outgoing calls
no test coverage detected