mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
readline: use kEmptyObject
PR-URL: https://github.com/nodejs/node/pull/43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
committed by
Antoine du Hamel
parent
a983d395ec
commit
8e7e58f6b0
@@ -18,12 +18,16 @@ const {
|
||||
} = require('internal/errors');
|
||||
const { validateAbortSignal } = require('internal/validators');
|
||||
|
||||
const {
|
||||
kEmptyObject,
|
||||
} = require('internal/util');
|
||||
|
||||
class Interface extends _Interface {
|
||||
// eslint-disable-next-line no-useless-constructor
|
||||
constructor(input, output, completer, terminal) {
|
||||
super(input, output, completer, terminal);
|
||||
}
|
||||
question(query, options = {}) {
|
||||
question(query, options = kEmptyObject) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let cb = resolve;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user