diff --git a/lib/repl.js b/lib/repl.js index d71f636cd64dc8..dafbd20d500383 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -70,7 +70,9 @@ const { ERR_SCRIPT_EXECUTION_INTERRUPTED } = require('internal/errors').codes; const { sendInspectorCommand } = require('internal/util/inspector'); -const { experimentalREPLAwait } = process.binding('config'); +const experimentalREPLAwait = internalBinding('options').getOptions( + '--experimental-repl-await' +); const { isRecoverableError } = require('internal/repl/recoverable'); const { getOwnNonIndexProperties,