Skip to content

node:readline/promises don't work #24768

@wangfeng1994

Description

@wangfeng1994

Version: Deno 1.45.4

app.mjs

import rl from 'node:readline/promises'
import fs from 'node:fs'

const r = rl.createInterface({
    input: fs.createReadStream("app.mjs"),
});

for await (const line of r) {
    console.log(line, '--');
}

deno run -A app.mjs

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.45.4
Args: ["deno", "run", "-A", "app.mjs"]

thread 'main' panicked at cli/module_loader.rs:615:7:
internal error: entered unreachable code
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlynode compat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions