<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chawan/lib/monoucha0/doc, branch master</title>
<subtitle>Chawan - a web browser for your terminal (mirror)
</subtitle>
<id>https://git.tilde.institute/ahoang/chawan/atom?h=master</id>
<link rel='self' href='https://git.tilde.institute/ahoang/chawan/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/'/>
<updated>2025-05-10T12:45:35Z</updated>
<entry>
<title>fromjs: switch back res to `var' from `out'</title>
<updated>2025-05-10T12:45:35Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-05-10T12:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=7c5323086f2b332a2f0afe44d69a4fb773dfd333'/>
<id>urn:sha1:7c5323086f2b332a2f0afe44d69a4fb773dfd333</id>
<content type='text'>
The original goal was to comply the Uninit warning, but this is now a
futile effort as Uninit is no longer planned to be the default in Nim.

Setting `res' to its type's default value is therefore just a waste of
cycles when it's already zero-initialized.
</content>
</entry>
<entry>
<title>jserror: simplify custom error creation</title>
<updated>2025-03-29T18:10:39Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-03-29T17:45:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=906956d3663fb335440a46ead7e1e4185065ab05'/>
<id>urn:sha1:906956d3663fb335440a46ead7e1e4185065ab05</id>
<content type='text'>
The old API was needlessly complex and suggested that it could only be
used for DOMException (which is not the case).

(Also optimized out code lookup from the DOMException constructor.)
</content>
</entry>
<entry>
<title>Re-add JSValueConst</title>
<updated>2025-03-12T17:20:21Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-03-12T17:20:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=84b12b22dfc218f7f353ab51d1a3235ce6d8596b'/>
<id>urn:sha1:84b12b22dfc218f7f353ab51d1a3235ce6d8596b</id>
<content type='text'>
This time, I've also ported over the consistency check to prevent some
ownership bugs.

Unfortunately, the check is very limited, and it is still possible to
double-free or leak JSValues.  I think it would be possible to make
coverage 100%, but only with ARC...
</content>
</entry>
<entry>
<title>Update docs</title>
<updated>2025-03-07T18:16:43Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-03-06T17:56:22Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=c5b56ec9e262bb21bb08aab1ff17ac1caa72c250'/>
<id>urn:sha1:c5b56ec9e262bb21bb08aab1ff17ac1caa72c250</id>
<content type='text'>
</content>
</entry>
<entry>
<title>javascript: remove ishtmldda from registerType</title>
<updated>2025-03-06T17:38:55Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-03-06T17:09:41Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=dd22a568b7de36193e0e2b71ae623f5bd75eb535'/>
<id>urn:sha1:dd22a568b7de36193e0e2b71ae623f5bd75eb535</id>
<content type='text'>
It's simpler and more efficient to handle this in the DOM.

(The interface was also confusing/broken in that it only really accepted
one htmldda class.)
</content>
</entry>
<entry>
<title>Update docs</title>
<updated>2025-02-20T18:29:54Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-02-20T18:15:12Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=377e85f29cbcd251c97882c271530396c7a9fbd8'/>
<id>urn:sha1:377e85f29cbcd251c97882c271530396c7a9fbd8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>javascript, jsopaque: call finalizers without corresponding JSValue</title>
<updated>2025-02-05T18:40:30Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-02-05T18:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=8a1b9a1685004b7a1ccf05bf49ff0e4d1fe4338e'/>
<id>urn:sha1:8a1b9a1685004b7a1ccf05bf49ff0e4d1fe4338e</id>
<content type='text'>
Previously, nim_finalize_for_js only called a finalizer if the opaque
Nim object already had a corresponding JSValue.  This was probably an
oversight (at least I had no idea this worked this way), so now we
always call the finalizer.

The upshot is that this means that finalizers can now receive a nil
runtime in this case, so finalizers not prepared for this might break.
The solution is to either explicitly nil-check the runtime, or to ensure
that such objects always get converted to a JSValue first.
</content>
</entry>
<entry>
<title>Add 'lib/monoucha0/' from commit '33efaee783c2adb20df019a8bc924411c4a97e7f'</title>
<updated>2025-01-18T22:15:21Z</updated>
<author>
<name>bptato</name>
<email>nincsnevem662@gmail.com</email>
</author>
<published>2025-01-18T22:15:21Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/ahoang/chawan/commit/?id=28fefabdeb685f4777ad2ad2ebf05e5e94e179d6'/>
<id>urn:sha1:28fefabdeb685f4777ad2ad2ebf05e5e94e179d6</id>
<content type='text'>
git-subtree-dir: lib/monoucha0
git-subtree-mainline: b56abad0883c0b4179f9c329a7169bb544fac4a5
git-subtree-split: 33efaee783c2adb20df019a8bc924411c4a97e7f
</content>
</entry>
</feed>
