From 7d3aebc546f663e7086b7670bca787bb7c3e453c Mon Sep 17 00:00:00 2001 From: Brandon Fish Date: Mon, 25 Feb 2019 18:49:24 -0600 Subject: [PATCH] Add missing walltime import --- lib/golang/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/golang/src/lib.rs b/lib/golang/src/lib.rs index 1b759603a..83a24189b 100644 --- a/lib/golang/src/lib.rs +++ b/lib/golang/src/lib.rs @@ -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),