Improved emscripten functions to be able to run jsc

This commit is contained in:
Syrus
2019-04-30 11:47:03 -07:00
parent 78c84d803b
commit e68f5e10e4
5 changed files with 64 additions and 2 deletions

View File

@ -28,3 +28,9 @@ pub fn ___cxa_uncaught_exception(_ctx: &mut Ctx) -> i32 {
debug!("emscripten::___cxa_uncaught_exception");
-1
}
pub fn ___cxa_pure_virtual(_ctx: &mut Ctx) {
debug!("emscripten::___cxa_pure_virtual");
// ABORT = true
panic!("Pure virtual function called!");
}