]> git.earman.xyz Git - sensor-watch.git/commitdiff
Fix lengthBytesUTF8 not a function (#255)
authoraustenadler <s5jitqluypqitf23ayssjtggxmafl4ti@fastmail.com>
Sat, 29 Jul 2023 11:25:27 +0000 (11:25 +0000)
committerGitHub <noreply@github.com>
Sat, 29 Jul 2023 11:25:27 +0000 (07:25 -0400)
* Add lengthBytesUTF8 as an exported runtime method

* Also export printErr as a runtime method

---------

Co-authored-by: Austen Adler <agadler@austenadler.com>
rules.mk

index 2c4acec12cfbbd7fc204f8b914666d1a1588d242..f04f3f466fe82f5d17ee1ca32a2ea530ff5b32e9 100644 (file)
--- 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