code: function compileJS(js, opts, type, extra) {
      if (typeof opts === 'string') {
        extra = type
        type = opts
        opts = {}
      }
      if (typeof type === 'object') {
        extra = type
        type = ''
      }
      else if (!extra) extra = {}
  
      return _compileJS(js, opts, type, extra.parserOptions, extra.url)
    }
docs: istanbul ignore next