Skip to content

Commit

Permalink
fix issue created in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdovzhanyn committed Jan 24, 2019
1 parent b64a565 commit dfa724c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/wasp_vm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ defmodule WaspVM do
def handle_call(:vm_state, _from, vm), do: {:reply, vm, vm}

def handle_continue({:start, start_addr}, vm) do
{_, vm} = execute_func(vm, start_addr, [], :infinity)
{_, vm} = execute_func(vm, start_addr, [], :infinity, "start", [])

{:noreply, vm}
end
Expand All @@ -230,9 +230,9 @@ defmodule WaspVM do
end

defp create_log_timestamp(fname) do
file =
Path.expand('./trace.log')
|> Path.absname
|> File.write("\n#{DateTime.utc_now()} :: #{fname} ================================\n", [:append])
'./trace.log'
|> Path.expand()
|> Path.absname
|> File.write("\n#{DateTime.utc_now()} :: #{fname} ================================\n", [:append])
end
end
2 changes: 0 additions & 2 deletions test/host_function_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ defmodule WaspVM.HostFunctionTest do

{:ok, pid} = WaspVM.start()

IO.inspect Math.__info__(:functions)

imports = WaspVM.HostFunction.create_imports(Math)

WaspVM.load_file(pid, "test/fixtures/wasm/host_func_math.wasm", imports)
Expand Down

0 comments on commit dfa724c

Please sign in to comment.