Lines Matching defs:const
5 const common = require('../common');
6 const stream = require('stream');
7 const REPL = require('internal/repl');
8 const assert = require('assert');
9 const fs = require('fs');
10 const path = require('path');
11 const { inspect } = require('util');
15 const tmpdir = require('../common/tmpdir');
20 const defaultHistoryPath = path.join(tmpdir.path, '.node_repl_history');
25 const _iter = data[Symbol.iterator]();
26 const doAction = () => {
27 const next = _iter.next();
33 const action = next.value;
50 const ENTER = { name: 'enter' };
51 const UP = { name: 'up' };
52 const DOWN = { name: 'down' };
53 const LEFT = { name: 'left' };
54 const RIGHT = { name: 'right' };
55 const BACKSPACE = { name: 'backspace' };
56 const TABULATION = { name: 'tab' };
57 const WORD_LEFT = { name: 'left', ctrl: true };
58 const WORD_RIGHT = { name: 'right', ctrl: true };
59 const GO_TO_END = { name: 'end' };
60 const SIGINT = { name: 'c', ctrl: true };
61 const ESCAPE = { name: 'escape', meta: true };
63 const prompt = '> ';
65 const tests = [
74 yield 'const ArrayIteratorPrototype =';
77 yield 'const {next} = ArrayIteratorPrototype;';
79 yield 'const realArrayIterator = Array.prototype[Symbol.iterator];';
122 const numtests = tests.length;
124 const runTestWrap = common.mustCall(runTest, numtests);
138 const opts = tests.shift();
141 const { expected, skip } = opts;
148 const lastChunks = [];
155 const output = chunk.toString();