archseer / enigma

An Erlang VM implementation in Rust
Mozilla Public License 2.0
1.05k stars 39 forks source link

Error handler #19

Open archseer opened 5 years ago

archseer commented 5 years ago

We need to place stubs in the exports registry for modules that aren't loaded yet, but referenced elsewhere. These should call the error handler, (which in the erlang stdlib will try to load the module or error).

http://erlang.org/doc/man/error_handler.html

Search for references to error_handler inside beam_emu.c and enigma for a quickstart.

archseer commented 5 years ago

This is more or less done. Need to double check if we covered all the parts.