From 340e5d1a4ad8d0028f3977c56af82def1544962d Mon Sep 17 00:00:00 2001 From: austenadler Date: Sat, 29 Jul 2023 11:25:27 +0000 Subject: [PATCH] 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 --- rules.mk | 1 + 1 file changed, 1 insertion(+) 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