Skip to content

Js_string, Arrays #413

Closed
Closed
@mationai

Description

@mationai

Getting "[E4018] Type Js_string does not implement trait Show: method to_string is missing" building

pub fn hello() -> Js_string {
  "Hello".to_js_string()
}

Also, does moonbit provide easier interop of data structures like Arrays between wasm/JS? The method shown in WebAssembly/design#1231 seems like poor DX.

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