Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update code style | bptato | 2024-04-17 | 1 | -4/+4 |
| | | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines | ||||
* | js: proper distinction between Opt/Option | bptato | 2024-03-24 | 1 | -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 Chagashi | bptato | 2024-02-22 | 1 | -53/+144 |
| | | | | | | The API is horrid :( but at least it copies less. TODO: think of a better API. | ||||
* | js: merge some type modules into jstypes | bptato | 2024-01-11 | 1 | -2/+1 |
| | | | | They only had type definitions, no need to put them in separate modules. | ||||
* | javascript: add TextEncoder, TextDecoder | bptato | 2023-10-21 | 1 | -0/+112 |