docs: function (value, pattern) {
          try {
              checkSubtree(value, pattern);
              return true;
          } catch (e) {
              if (e instanceof Match.Error)
                  return false;
              // Rethrow other errors.
              throw e;
          }
      }