From 072feec1b0c8d381d1921bd196c9bffb51366585 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Fri, 26 Jun 2020 02:17:00 +0200 Subject: [PATCH] Revert "repl: always check for NODE_REPL_MODE environment variable" This reverts commit b831b081c499a614c1ee3f0272c9de1783395402. This presumably unbreaks the ASAN github action build. Example failure: 2020-06-25T19:59:15.1448178Z === release test-repl-envvars === 2020-06-25T19:59:15.1448872Z Path: parallel/test-repl-envvars 2020-06-25T19:59:15.1449449Z --- stderr --- 2020-06-25T19:59:15.1449835Z assert.js:103 2020-06-25T19:59:15.1450194Z throw new AssertionError(obj); 2020-06-25T19:59:15.1450524Z ^ 2020-06-25T19:59:15.1450817Z 2020-06-25T19:59:15.1451431Z AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal: 2020-06-25T19:59:15.1452000Z + actual - expected 2020-06-25T19:59:15.1452298Z 2020-06-25T19:59:15.1452634Z { 2020-06-25T19:59:15.1452978Z terminal: true, 2020-06-25T19:59:15.1453321Z + useColors: false 2020-06-25T19:59:15.1453861Z - useColors: true 2020-06-25T19:59:15.1454225Z } 2020-06-25T19:59:15.1454841Z at /home/runner/work/node/node/test/parallel/test-repl-envvars.js:55:12 2020-06-25T19:59:15.1455246Z at internal/repl.js:33:5 PR-URL: https://github.com/nodejs/node/pull/34058 Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum Reviewed-By: Rich Trott --- doc/api/repl.md | 4 -- lib/internal/main/repl.js | 16 ++++++- lib/internal/repl.js | 42 +++++++++++++------ lib/repl.js | 11 ++--- test/parallel/test-repl-colors.js | 1 - test/parallel/test-repl-envvars.js | 30 ++++++------- test/parallel/test-repl-history-navigation.js | 13 +++--- test/parallel/test-repl-history-perm.js | 11 ++--- test/parallel/test-repl-options.js | 1 - test/parallel/test-repl-persistent-history.js | 14 ++++--- test/parallel/test-repl-reverse-search.js | 14 +++---- test/parallel/test-repl-use-global.js | 25 +++++++---- 12 files changed, 109 insertions(+), 73 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 05b8851b8eff94..614c577d2cfd44 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -555,10 +555,6 @@ A list of the names of all Node.js modules, e.g., `'http'`.