function assertCompiler(name, value) {
  if (typeof value !== 'function') {
    throw new TypeError('Cannot `' + name + '` without `compiler`')
  }
}
Assert a compiler is available.

@param {string} name
@param {unknown} value
@returns {asserts value is Compiler}