M13.12: script socket port validation, resource-string trailing commas, parser and socket edge-case tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-03 09:48:14 -04:00
co-authored by Claude Opus 5.5
parent 88384197f9
commit 2f1788bdf6
3 changed files with 144 additions and 1 deletions
+6
View File
@@ -143,6 +143,12 @@ function __uiParseRes(src) {
ws();
if (s.charAt(i) === ",") {
i++;
// A trailing comma, as JavaScript allows.
ws();
if (s.charAt(i) === "]") {
i++;
return a;
}
continue;
}
if (s.charAt(i) === "]") {