From 3cd81d411944047466096749b3fcd182ad2d38ce Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Tue, 5 Feb 2019 23:39:12 -0600 Subject: [PATCH] Fix lua emscripten imports --- lib/emscripten/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/emscripten/src/lib.rs b/lib/emscripten/src/lib.rs index b74358ea7..7fe8f4d10 100644 --- a/lib/emscripten/src/lib.rs +++ b/lib/emscripten/src/lib.rs @@ -507,6 +507,7 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject // Linking "_dlclose" => func!(crate::linking::_dlclose), + "_dlerror" => func!(crate::linking::_dlerror), "_dlopen" => func!(crate::linking::_dlopen), "_dlsym" => func!(crate::linking::_dlsym), @@ -518,6 +519,9 @@ pub fn generate_emscripten_env(globals: &mut EmscriptenGlobals) -> ImportObject "global.Math" => { "pow" => func!(crate::math::pow), }, + "asm2wasm" => { + "f64-rem" => func!(crate::math::f64_rem), + }, }; // mock_external!(env_namespace, _sched_yield); // mock_external!(env_namespace, _llvm_stacksave);