(error)
| 25 | }; |
| 26 | |
| 27 | function createParseError(error) { |
| 28 | /* c8 ignore next 3 */ |
| 29 | if (!(error instanceof GraphQLError)) { |
| 30 | return error; |
| 31 | } |
| 32 | |
| 33 | const { |
| 34 | message, |
| 35 | locations: [start], |
| 36 | } = error; |
| 37 | return createError(message, { loc: { start }, cause: error }); |
| 38 | } |
| 39 | |
| 40 | function parse(text /* , options */) { |
| 41 | let ast; |