about summary refs log tree commit diff stats
path: root/src/js/encoding.nim
Commit message (Collapse)AuthorAgeFilesLines
* xhr: more progressbptato2024-08-151-15/+13
| | | | | | | | | | * add responseText, response * add net tests -> currently sync XHR only; should find a way to do async tests... * update monoucha -> simplified & updated some related code that no longer worked properly
* Update monouchabptato2024-08-091-8/+7
|
* encoding: simplifybptato2024-07-141-66/+15
| | | | use the new API instead of the convoluted decodercore + growbuf thing
* Update monouchabptato2024-06-221-1/+1
|
* Update Chame, Chagashibptato2024-06-131-56/+9
|
* Move JS wrapper into Monouchabptato2024-06-031-5/+5
| | | | Operation "modularize Chawan somewhat" part 3
* js: refactorbptato2024-05-081-1/+1
| | | | | | | * prefix to-be-separated modules with js * remove dynstreams dependency * untangle from EmptyPromise * move typeptr into tojs
* cssparser: refactorbptato2024-05-011-2/+0
| | | | | | | | | * factor out skipWhitespace * remove streams dependency (cssparser could never stream without blocking the event loop, so we were just passing a StringStream in all cases, which made the whole streaming pointless.)
* Update code stylebptato2024-04-171-4/+4
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* js: proper distinction between Opt/Optionbptato2024-03-241-4/+5
| | | | | | | | | | | | | | | | until now, this had very strange (and inconsistent) semantics: * err() was used for exception propagation, but also as a null value * Option accepted undefined as a none value, but not null * Opt and Option were used interchangeably (and mostly randomly) Now, Result is always used for error reporting, and err(nil) means JS_EXCEPTION. (Opt is a special case of Result where we don't care about the error type, and is not used in JS.) Option on the other hand means "nullable variation of normally non-nullable type", and translates to JS_NULL. In JS we mainly use it for turning strings nullable.
* Replace Chakasu with Chagashibptato2024-02-221-53/+144
| | | | | | The API is horrid :( but at least it copies less. TODO: think of a better API.
* js: merge some type modules into jstypesbptato2024-01-111-2/+1
| | | | They only had type definitions, no need to put them in separate modules.
* javascript: add TextEncoder, TextDecoderbptato2023-10-211-0/+112