Skip to content

Adding a semi-colon causes issues on the transform #8

@gregtatum

Description

@gregtatum

I'd like to do something like this, but the semi-colon added at the beginning of the statement causes a syntax error:

;(async () => {
  const { addOne } = await instantiateWasm(rust`
    #[no_mangle]
    pub fn addOne(x: i32) -> i32 {
      x + 1
    }
  `)
})()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions