Skip to content

main function in @main types fails with error #4835

@MaxDesiatov

Description

@MaxDesiatov

Describe the bug
This sample code fails immediately after it starts executing:

import JavaScriptEventLoop

@main
enum Main {
  static func main() async throws {
    JavaScriptEventLoop.installGlobalExecutor()
  }
}

Screenshots
Screenshot 2022-08-28 at 21 44 22

Environment
SwiftWasm 5.6.0, carton 0.16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions