mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 15:57:49 +00:00
A command that needs a whole number of 0 or more, such as `index` of `appearance.setItem`, `anchor` of `path.removeAnchor` and `addon.pen.removePoint`, `sourceDocument` of `edit.dropSelection`, `index` of `document.activate` and `to` of `document.move`, answered "missing integer `index`" (or "missing index") both when the key was left out and when it was given as a value that is not a whole number of 0 or more, such as "3", 2.5, -1 or true. A value that is given but is not one is now refused with "`index` must be a whole number", the message object ids already use. A key left out or given as null is still missing, and an optional index such as `subpath` keeps its default. Neither error changes the document or records an undo step. Docs: docs/mcp.md, docs/target-app-parity.md.