From 457044f2e7a832041747930fc460ebe494bdca28 Mon Sep 17 00:00:00 2001 From: Jose Bucio Date: Mon, 15 Oct 2018 23:13:18 -0500 Subject: [PATCH] repl: migrate from process.binding('config') to getOptions() --- lib/repl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,