[Untranslated] Logging Revisited
In our first chapter we manually wrote our log functions to do logging with console.log
. Let's consider how we would do this dynamically.
- We need some way to register a function at runtime.
- We need some way to call that function.
- We'll need some way for that dynamic function to have access to memory (e.g. for extracting utf-8 bytes.)