From e003711c8360faa16735c1a10616675242e66edd Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 14 Apr 2021 14:21:03 +0200 Subject: [PATCH] readline: reserve `readline/promises` module name Refs: https://github.com/nodejs/node/pull/37947 --- lib/readline/promises.js | 7 +++++++ node.gyp | 1 + 2 files changed, 8 insertions(+) create mode 100644 lib/readline/promises.js diff --git a/lib/readline/promises.js b/lib/readline/promises.js new file mode 100644 index 00000000000000..fcda0409cca97e --- /dev/null +++ b/lib/readline/promises.js @@ -0,0 +1,7 @@ +'use strict'; + +const { + Error +} = primordials; + +throw new Error('Not implemented'); // eslint-disable-line no-restricted-syntax diff --git a/node.gyp b/node.gyp index acae34fa393339..4c14eb6971b709 100644 --- a/node.gyp +++ b/node.gyp @@ -77,6 +77,7 @@ 'lib/punycode.js', 'lib/querystring.js', 'lib/readline.js', + 'lib/readline/promises.js', 'lib/repl.js', 'lib/stream.js', 'lib/stream/promises.js',