Skip to content
Discussion options

You must be logged in to vote

Ok, I know the breaking change now:

this code:

rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});
rl.historySize = 1000;

Throws an error:

Cannot set property historySize of #<Interface> which has only a getter
TypeError: Cannot set property historySize of #<Interface> which has only a getter
    at file:///home/kuba/projects/jcubic/scheme/lips/master/bin/lips.js:447:24
    at ModuleJob.run (node:internal/modules/esm/module_job:371:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:683:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)

I didn't see it because of:

process.on('uncaughtExce…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jcubic
Comment options

@avivkeller
Comment options

@jcubic
Comment options

@jcubic
Comment options

Answer selected by jcubic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants