From: austenadler Date: Sat, 29 Jul 2023 11:25:27 +0000 (+0000) Subject: Fix lengthBytesUTF8 not a function (#255) X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=340e5d1a4ad8d0028f3977c56af82def1544962d;p=sensor-watch.git Fix lengthBytesUTF8 not a function (#255) * Add lengthBytesUTF8 as an exported runtime method * Also export printErr as a runtime method --------- Co-authored-by: Austen Adler --- diff --git a/rules.mk b/rules.mk index 2c4acec..f04f3f4 100644 --- a/rules.mk +++ b/rules.mk @@ -18,6 +18,7 @@ $(BUILD)/$(BIN).html: $(OBJS) @echo HTML $@ @$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ \ -s ASYNCIFY=1 \ + -s EXPORTED_RUNTIME_METHODS=lengthBytesUTF8,printErr \ -s EXPORTED_FUNCTIONS=_main \ --shell-file=$(TOP)/watch-library/simulator/shell.html