about summary refs log tree commit diff stats
path: root/src/js/fromjs.nim
Commit message (Collapse)AuthorAgeFilesLines
* javascript: add JSDict typebptato2023-09-091-1/+16
| | | | And use that in extern().
* buffer: basic click event supportbptato2023-08-311-3/+14
| | | | | | | 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: fix fromJSFunction, simplify setOpaquebptato2023-08-301-1/+3
| | | | | | * fromJSFunction: dup the value, so that it cannot go out of context. * setOpaque no longer calls GC_ref, so no need for it to be generic instead of just taking a pointer.
* javascript: factor out fromJSbptato2023-08-291-0/+457