You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -429,6 +429,13 @@ impl<let NumBytes: u32, let NumPackedFields: u32, let MaxNumTokens: u32, let Max
429
429
scan_mode = scan_token;
430
430
}
431
431
432
+
// if we end in a scan mode where we're searching for a number, string or a literal (true/false/null), we have an incomplete token and this is invalid JSON
433
+
// NOTE: if we upgrade this parser to be able to process single-value JSON (e,g, "999" or ""hello" : "world"" this logic needs to be upgraded)
434
+
assert(
435
+
scan_mode == GRAMMAR_SCANasField,
436
+
"build_transcript: incomplete token (number, string or literal)",
437
+
);
438
+
432
439
// ensure an error isn't hiding in the last scanned token
0 commit comments