Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected token bootstrap #73

Open
Raynos opened this issue May 18, 2020 · 1 comment
Open

unexpected token bootstrap #73

Raynos opened this issue May 18, 2020 · 1 comment

Comments

@Raynos
Copy link

Raynos commented May 18, 2020

raynos at raynos-Precision-5530  
~/projects/fake-ses on master*
$ nectar test/index.js -o out
[*] Generating source file
[error] Parsing error: Unexpected token bootstrap line 20 column 9 in file test/test-harness.js
class TestHarness {
  constructor () {
    /** @type {FakeSESServer} */
    this.sesServer = new FakeSESServer({ port: 0 })
    /** @type {AWS.SES | null} */
    this.ses = null
  }

  /** @returns {Promise<void>} */
  async bootstrap () {
    const hostPort = await this.sesServer.bootstrap()

    this.ses = new AWS.SES({
      region: 'us-east-1',
      endpoint: `http://${hostPort}`,
      sslEnabled: false,
      accessKeyId: '123',
      secretAccessKey: 'abc'
    })
  }

Does it support async methods ?

@adrien-thierry
Copy link
Contributor

Hi @Raynos ,

Thank you for reporting the issue, it's not supporting async yet, I will add it to the todo list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants