Skip to content

No exported functions #97

Open
Open
@euforic

Description

after fa85caf was merged I am now getting an panic message that infers no exported functions exist panic: runtime error: index out of range [51] with length 0 my execution code is almost a 1 to 1 duplicate of the projects main.go

entryID, ok := vm.GetFunctionExport(w.context.action)
	if !ok {
		return errors.New("missing 'run' entry function")
	}

	// If any function prior to the entry function was declared to be
	// called by the module, run it first.
	if vm.Module.Base.Start != nil {
		startID := int(vm.Module.Base.Start.Index)
		_, err := vm.Run(startID)
		if err != nil {
			vm.PrintStackTrace()
			return err
		}
	}

	// Run the WebAssembly module's entry function.
	if _, err := vm.Run(entryID); err != nil {
		vm.PrintStackTrace()
		return err
	}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions