Skip to content

Bug on node 12 #26

Open
Open

Description

@bidoubiwa

For some reason when running the script in node 12 the events of the stream-json library are not waited on.

The following works well with node 14 > but not with node 12.

  await new Promise(function (resolve, rejects) {
    verifierStream.on('close', function () {
      resolve();
    });
    verifier.on('error', error => {
      rejects({message: `Json file is not valid: ${jsonFile}: ${error.message}`, file: jsonFile, error: error.message})
    });
  });

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions