• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// We must load the CJS version here because the ESM wrapper call `hasIPv6`
2// which compiles a RegEx.
3// eslint-disable-next-line node-core/require-common-first
4import '../common/index.js';
5import assert from 'node:assert';
6
7assert.strictEqual(RegExp.$_, '');
8assert.strictEqual(RegExp.$0, undefined);
9assert.strictEqual(RegExp.$1, '');
10assert.strictEqual(RegExp.$2, '');
11assert.strictEqual(RegExp.$3, '');
12assert.strictEqual(RegExp.$4, '');
13assert.strictEqual(RegExp.$5, '');
14assert.strictEqual(RegExp.$6, '');
15assert.strictEqual(RegExp.$7, '');
16assert.strictEqual(RegExp.$8, '');
17assert.strictEqual(RegExp.$9, '');
18assert.strictEqual(RegExp.input, '');
19assert.strictEqual(RegExp.lastMatch, '');
20assert.strictEqual(RegExp.lastParen, '');
21assert.strictEqual(RegExp.leftContext, '');
22assert.strictEqual(RegExp.rightContext, '');
23assert.strictEqual(RegExp['$&'], '');
24assert.strictEqual(RegExp['$`'], '');
25assert.strictEqual(RegExp['$+'], '');
26assert.strictEqual(RegExp["$'"], '');
27