Skip to content

phone-number.wat entry template is empty #138

Closed
@atk

Description

@atk

We should at least provide a function signature, e.g.

(module
  (memory (export "mem") 1)

  ;;
  ;; Returns a cleaned valid phone number or an empty string if invalid
  ;;
  ;; @param {i32} offset - The offset of the phone number in linear memory.
  ;; @param {i32} length - The length of the phone number in linear memory.
  ;;
  ;; @returns {(i32,i32)} - Offset and length of cleaned phone number or empty string
  ;;                        in linear memory.
  ;;
  (func (export "clean") (param $offset i32) (param $length i32) (result i32 i32)

  )
)

Metadata

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