about summary refs log tree commit diff stats
path: root/src/io/console.nim
Commit message (Collapse)AuthorAgeFilesLines
* Re-add JSValueConstbptato2025-03-121-10/+10
| | | | | | | | | This time, I've also ported over the consistency check to prevent some ownership bugs. Unfortunately, the check is very limited, and it is still possible to double-free or leak JSValues. I think it would be possible to make coverage 100%, but only with ARC...
* dynstream, console: remove DynFileStreambptato2025-02-261-6/+19
| | | | | Conflating buffered streams with non-buffered streams is generally a bad idea.
* dynstream: remove exceptionsbptato2025-02-261-1/+1
| | | | | | | | | | | | | Now we just pass down the value of n and check errno, plus readDataLoop/writeDataLoop returns a bool indicating whether it failed. For now this seems to work OK, but maybe I'll add a better abstraction in the future. EOFError is still used for handling failed packets; this is brittle, and should be replaced once we have a proper buffering mechanism for them. (That will also let us kill BufStream.) Unrelated: this also fixes a bug in buffer with cacheId.
* twtstr: add mypairsbptato2024-11-281-1/+2
| | | | | This couldn't get into system.nim for technical reasons, but it's still pretty useful when iterating over non-mutable openArrays.
* js: reorganize modules, update docsbptato2024-11-151-0/+84
most of it has already been moved to monoucha, and the rest fits better in other directories. also, move urimethodmap to config