about summary refs log tree commit diff stats
path: root/src/js/opaque.nim
Commit message (Collapse)AuthorAgeFilesLines
* javascript: fix a GC bugbptato2023-09-091-0/+1
| | | | | | | GC_unref may indirectly call nim_finalize_for_js, which could mess up execution of checkDestroy. I haven't encountered it in refc, but it's definitely present in orc.
* javascript: fix fromJSFunction, simplify setOpaquebptato2023-08-301-3/+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/+37
|
* javascript: refactorbptato2023-08-281-0/+82
Split out parts of the JS module, because it was starting to confuse the compiler a little. (Peakmem is back at 750M. Interesting.)