Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-12-10 19:27:22 +0300
committerRuben Bridgewater <ruben@bridgewater.de>2019-12-15 18:22:24 +0300
commit7327f390f69fe53c665b48862f51e343af555d37 (patch)
tree53201ce736597e6c0aeca8e95d52480f203482b4 /test
parent67ed526ab03c3e9b2f41290b7cd6e9c2e7d9b4dd (diff)
repl: remove dead code
The .scope command was used only in the old debugger. Since that's not part of core anymore it's does not have any use. I tried to replicate the expected behavior but it even results in just exiting the repl immediately when using the completion similar to the removed test case. PR-URL: https://github.com/nodejs/node/pull/30907 Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-repl-eval-scope.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/parallel/test-repl-eval-scope.js b/test/parallel/test-repl-eval-scope.js
deleted file mode 100644
index 702b6056f10..00000000000
--- a/test/parallel/test-repl-eval-scope.js
+++ /dev/null
@@ -1,24 +0,0 @@
-'use strict';
-const common = require('../common');
-const ArrayStream = require('../common/arraystream');
-const assert = require('assert');
-const repl = require('repl');
-
-{
- const stream = new ArrayStream();
- const options = {
- eval: common.mustCall((cmd, context) => {
- assert.strictEqual(cmd, '.scope\n');
- assert.deepStrictEqual(context, { animal: 'Sterrance' });
- }),
- input: stream,
- output: stream,
- terminal: true
- };
-
- const r = repl.start(options);
- r.context = { animal: 'Sterrance' };
-
- stream.emit('data', '\t');
- stream.emit('.exit\n');
-}