From e8066ee2fd064f95d9c2c96d0a623de7b8920704 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 5 Oct 2026 08:46:34 +0200 Subject: [PATCH] Answer prose round 2: item 78 also rewords the position paragraph --- todo.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/todo.md b/todo.md index 435c34d..a779001 100644 --- a/todo.md +++ b/todo.md @@ -75,10 +75,11 @@ Today `null` and `undefined` throw a `TypeError` reading `length`, and `42` read document. A JavaScript caller, or a TypeScript one past an untyped boundary, can pass any of these. No existing code reads true of a non-string input (`docs/decisions.md` §The code list). The maintainer chose a new one on 2026-10-05: `not-a-string`, with position `{ line: 1, offset: 0 }` -and an empty path. The chunk adds it to `ConvertErrorCode` and the README's parsing table, and -records in `docs/decisions.md` §Which code a cause takes that a value that is not a string is -`not-a-string`. Breaking (§The code list): the changelog entry says so. Found while checking the -other ADF converters for item 71. +and an empty path. The chunk adds it to `ConvertErrorCode` and the README's parsing table, rewords +the README's `position` paragraph, which assumes a string was passed in, and records under +`docs/decisions.md` §Which code a cause takes that a non-string input takes `not-a-string`. +Breaking (§The code list): the changelog entry says so. Found while checking the other ADF +converters for item 71. ### 45. Replace `isAdfDocument` with a reader returning `Result`.