Add missing walltime import

This commit is contained in:
Brandon Fish 2019-02-25 18:49:24 -06:00
parent 8de9b3f88c
commit 7d3aebc546

View File

@ -62,6 +62,10 @@ fn runtimeNanotime(_ctx: &mut Ctx, val: i32) {
panic!("runtimeNanotime not yet implemented");
}
fn runtimeWalltime(_ctx: &mut Ctx, val: i32) {
panic!("runtimeWalltime not yet implemented");
}
fn runtimeScheduleCallback(_ctx: &mut Ctx, val: i32) {
panic!("runtimeScheduleCallback not yet implemented");
}
@ -113,6 +117,7 @@ pub fn generate_golang_env() -> ImportObject {
"runtime.wasmExit" => func!(crate::runtimeWasmExit),
"runtime.wasmWrite" => func!(crate::runtimeWasmWrite),
"runtime.nanotime" => func!(crate::runtimeNanotime),
"runtime.walltime" => func!(crate::runtimeWalltime),
"runtime.scheduleCallback" => func!(crate::runtimeScheduleCallback),
"runtime.clearScheduledCallback" => func!(crate::runtimeClearScheduledCallback),
"runtime.getRandomData" => func!(crate::runtimeGetRandomData),