From 69870f3b974e65d61b564b396e01d21cc023e6e9 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 21 Oct 2023 20:22:21 +0200 Subject: javascript: add TextEncoder, TextDecoder --- src/html/env.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/html/env.nim') diff --git a/src/html/env.nim b/src/html/env.nim index 6046ee2b..d300400b 100644 --- a/src/html/env.nim +++ b/src/html/env.nim @@ -9,6 +9,7 @@ import io/promise import js/base64 import js/console import js/domexception +import js/encoding import js/error import js/intl import js/javascript @@ -144,6 +145,7 @@ proc addScripting*(window: Window, selector: Selector[int]) = ctx.addHeadersModule() ctx.addRequestModule() ctx.addResponseModule() + ctx.addEncodingModule() proc runJSJobs*(window: Window) = window.jsrt.runJSJobs(window.console.err) -- cgit 1.4.1-2-gfad0