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 <agadler@austenadler.com>
This commit is contained in:
austenadler 2023-07-29 11:25:27 +00:00 committed by GitHub
parent 923112172d
commit 340e5d1a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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