Skip to content

async keyword is removed #904

@Rich-Harris

Description

@Rich-Harris

REPL. The async keyword is removed from the oncreate function:

export default {
  async oncreate() {
    const data = await fetch('foo.json').then(r => r.json());
    console.log(data);
  }
};

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