src/language-js/parser-meriyah.js/parse
function parse(text, parsers, options) {
  let ast;

  try {
    ast = parseWithOptions(text /* module */, true);
  } catch (moduleError) {
    try {
      ast = parseWithOptions(text, /* module */ false);
    } catch (_) {
      // throw the error for `module` parsing
      const { message, line, column } = moduleError;

      /* istanbul ignore next */
      if (typeof line !== "number") {
        throw moduleError;
      }

      throw createError(message, { start: { line, column } });
    }
  }

  return postprocess(ast, { ...options, originalText: text });
}