Lines Matching +full:- +full:- +full:session +full:- +full:end +full:- +full:regex
32 * }).listen("/tmp/node-repl-sock");
111 const acornWalk = require('internal/deps/acorn/acorn-walk/dist/walk');
164 '--experimental-repl-await',
166 const pendingDeprecation = getOptionValue('--pending-deprecation');
202 // Lazy-loaded.
471 // Shall be false in case `--no-experimental-repl-await` flag is used.
719 'REPL, alternatively use dynamic import: ' + toDynamicImport(self.lines.at(-1));
729 (_, pre, line) => pre + (line - 1),
736 if (errStack[0] === '[' && errStack[errStack.length - 1] === ']') {
737 errStack = StringPrototypeSlice(errStack, 1, -1);
764 RegExpPrototypeExec(/^\[?([A-Z][a-z0-9_]*)*Error/, line) !== null) {
962 // If we got any output - print it (if no error)
1036 case 'd': // End editor mode
1102 sendInspectorCommand((session) => {
1103 session.post('Runtime.enable');
1104 session.once('Runtime.executionContextCreated', ({ params }) => {
1108 session.post('Runtime.disable');
1196 const len = this.lines.level.length ? this.lines.level.length - 1 : 0;
1212 const importRE = /\bimport\s*\(\s*['"`](([\w@./:-]+\/)?(?:[\w@./:-]*))(?![^'"`])$/;
1213 const requireRE = /\brequire\s*\(\s*['"`](([\w@./:-]+\/)?(?:[\w@./:-]*))(?![^'"`])$/;
1214 const fsAutoCompleteRE = /fs(?:\.promises)?\.\s*[a-z][a-zA-Z]+\(\s*["'](.*)/;
1216 /(?:[\w$'"`[{(](?:\w|\$|['"`\]})])*\??\.)*[a-zA-Z_$](?:\w|\$)*\??\.?$/;
1217 const versionedFileNamesRe = /-\d+\.\d+/;
1250 // `Object.prototype` is the only non-contrived object that fulfills
1268 return sendInspectorCommand((session) => {
1270 session.post('Runtime.globalLexicalScopeNames', {
1318 // -> [['util.print', 'util.debug', 'util.log', 'util.inspect'],
1377 const base = StringPrototypeSlice(dirent.name, 0, -extension.length);
1409 getOptionValue('--experimental-specifier-resolution') === 'node' ?
1482 RegExpPrototypeExec(/\w|\.|\$/, line[line.length - 1]) !== null) {
1491 expr = StringPrototypeSlice(match, 0, -1);
1512 // `globalBuiltins` is a `SafeSet`, not an Array-like.
1523 expr = StringPrototypeSlice(expr, 0, -1);
1541 while (p !== null && sentinel-- !== 0) {
1580 // Filter is always case-insensitive following chromium autocomplete
1601 ArrayPrototypeSort(group, (a, b) => (b > a ? 1 : -1));
1656 const len = self.lines.level.length ? self.lines.level.length - 1 : 0;
1671 const countMatches = (regex, str) => { argument
1673 while (RegExpPrototypeExec(regex, str) !== null) count++;
1681 let depth = dw.length - up.length;
1694 line: self.lines.length - 1,
1783 StringPrototypeRepeat(' ', longestNameLength - name.length + 3);
1794 help: 'Save all evaluated commands in this REPL session to a file',
1798 this.output.write(`Session saved to: ${file}\n`);
1807 help: 'Load JS from a file into the REPL session',