diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-21 20:22:21 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-21 20:22:21 +0200 |
commit | 69870f3b974e65d61b564b396e01d21cc023e6e9 (patch) | |
tree | f773f5446a2232739c4818080e467851deabb4f8 /src/local/client.nim | |
parent | f77db0bdefd43ec03d7d26ec7a5d793bece25030 (diff) | |
download | chawan-69870f3b974e65d61b564b396e01d21cc023e6e9.tar.gz |
javascript: add TextEncoder, TextDecoder
Diffstat (limited to 'src/local/client.nim')
-rw-r--r-- | src/local/client.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index 91b111d9..9cff0f2f 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -28,6 +28,7 @@ import io/socketstream import js/base64 import js/console import js/domexception +import js/encoding import js/error import js/fromjs import js/intl @@ -640,6 +641,7 @@ proc addJSModules(client: Client, ctx: JSContext) = ctx.addConfigModule() ctx.addPagerModule() ctx.addContainerModule() + ctx.addEncodingModule() func getClient(client: Client): Client {.jsfget: "client".} = return client |