Skip to content

Commit

Permalink
Fix non-WASI run command to pass arguments correctly
Browse files Browse the repository at this point in the history
Close #74
  • Loading branch information
kateinoigakukun committed Apr 5, 2024
1 parent ef1cf92 commit e0dd2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CLI/Run/Run.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ struct Run: ParsableCommand {
}

func instantiateNonWASI(module: Module, interceptor: RuntimeInterceptor?) throws -> (() throws -> Void)? {
var arguments = arguments
let functionName = arguments.popLast()
let functionName = arguments.first
let arguments = arguments.dropFirst()

var parameters: [Value] = []
for argument in arguments {
Expand Down

0 comments on commit e0dd2b4

Please sign in to comment.