Skip to content

Breaking change on older node versions #1193

Closed
@peshrawahmed

Description

@peshrawahmed

🐛 Bug Report

I am currently using nodejs v9.5 and getting error on new client version v7.7.0 that has been released hours ago. I don't know if it is done intentionally or not(Sorry if it is done intentionally). But seems like older node versions does not work with the following declaration of generator functions:

async * FunctionName(){}

giving me error on lib/Helpers.js on line 56:

  async * scrollSearch (params, options = {}) {
        ^

To Reproduce

Running on an older version on node reproduces the error.
Adding the error screenshot
22

Your Environment

  • node version: 9.5
  • @elastic/elasticsearch version: >=7.7.0
  • os: Mac

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