diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-01 19:26:32 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-01 19:57:54 +0200 |
commit | 2b10a9b7f61d58157f85c93e8e7b18b1e01e4b79 (patch) | |
tree | a6c544e5c0e49578d847985945448344540a9f7f /src/js/intl.nim | |
parent | ef136ac44db26074bf9528f17dee764f731ed4eb (diff) | |
download | chawan-2b10a9b7f61d58157f85c93e8e7b18b1e01e4b79.tar.gz |
use =destroy instead of finalizers
This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
Diffstat (limited to 'src/js/intl.nim')
-rw-r--r-- | src/js/intl.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/intl.nim b/src/js/intl.nim index f37789ad..054e5d04 100644 --- a/src/js/intl.nim +++ b/src/js/intl.nim @@ -6,6 +6,8 @@ import js/javascript type NumberFormat = ref object +jsDestructor(NumberFormat) + #TODO ...yeah proc newNumberFormat(name: string = "en-US", options = none(JSValue)): NumberFormat {.jsctor.} = |