diff options
author | bptato <nincsnevem662@gmail.com> | 2023-08-01 19:05:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-08-01 19:37:48 +0200 |
commit | af3dbce840d0d0956663ffb20012329a4c22d5dd (patch) | |
tree | da3c2bad567d9b08f585cbc973aac61ef4eb05ae /src/js/javascript.nim | |
parent | cab49aa0952c24941bcfb9a5b483f796158bf373 (diff) | |
download | chawan-af3dbce840d0d0956663ffb20012329a4c22d5dd.tar.gz |
Fixes & workarounds to compile on Nim 2.0.0
* Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
Diffstat (limited to 'src/js/javascript.nim')
-rw-r--r-- | src/js/javascript.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/javascript.nim b/src/js/javascript.nim index 48d82954..0cc1fb83 100644 --- a/src/js/javascript.nim +++ b/src/js/javascript.nim @@ -1829,7 +1829,7 @@ type name*: string get*: JSGetterMagicFunction set*: JSSetterMagicFunction - magic*: uint16 + magic*: int16 TabFunc* = object name*: string |