about summary refs log tree commit diff stats
path: root/src/js/tojs.nim
Commit message (Collapse)AuthorAgeFilesLines
* tojs: remove JSDictbptato2023-09-091-12/+0
| | | | it's broken anyway, and unused currently
* javascript: add JSDict typebptato2023-09-091-0/+14
| | | | And use that in extern().
* tojs: fix memory leakbptato2023-09-041-5/+12
| | | | | | Welp. GC_ref should only be called if a new reference is being created. This is what we did until 48f1306f, where this regression slipped in.
* buffer: basic click event supportbptato2023-08-311-1/+3
| | | | | | | Mostly a proof of concept. Just bubble it unconditionally for now and never prevent default. Also, fix fromJSFunction by Dup'ing its closure JSValue.
* javascript: refactorbptato2023-08-281-0/+273
Split out parts of the JS module, because it was starting to confuse the compiler a little. (Peakmem is back at 750M. Interesting.)