{"record":{"id":"a1f1ac6415f43914","repo":"oven-sh/bun","slug":"string-did-not-end","errorCode":null,"errorMessage":"String did not end","messagePattern":"String did not end","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/codegen/builtin-parser.ts","lineNumber":199,"sourceCode":"    } else {\n      throw new Error(\"TODO\");\n    }\n  }\n\n  return { result, rest: contents };\n}\n\nfunction getEndOfBasicString(str: string, quote: \"'\" | '\"') {\n  let i = 0;\n  while (i < str.length) {\n    if (str[i] === \"\\\\\") {\n      i++;\n    } else if (str[i] === quote) {\n      return i;\n    }\n    i++;\n  }\n  throw new Error(\"String did not end\");\n}\n","sourceCodeStart":181,"sourceCodeEnd":201,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/codegen/builtin-parser.ts#L181-L201","documentation":"Error \"String did not end\" thrown in oven-sh/bun.","triggerScenarios":"Thrown at src/codegen/builtin-parser.ts:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}