Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

PR #430 Breaks Stream interface in Node.js #470

@Artmobile

Description

@Artmobile

PR #430 breaks fluent interface nature of Node.js Stream:

To reproduce, uncomment require("zone.js"). The code will crash because createInterface and on do not return self which prevents cascading

//require("zone.js")
const fs = require("fs")

require('readline').createInterface({
  input: fs.createReadStream('/etc/hosts')
}).on('line', function (line) {
  console.log(line)
}).on('close', function () {
  console.log('done')
});

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