mirror of
https://github.com/nodejs/node.git
synced 2025-04-29 22:40:57 +00:00

Some checks failed
Coverage Linux (without intl) / coverage-linux-without-intl (push) Waiting to run
Coverage Linux / coverage-linux (push) Waiting to run
Coverage Windows / coverage-windows (push) Waiting to run
Test and upload documentation to artifacts / build-docs (push) Waiting to run
Linters / lint-addon-docs (push) Waiting to run
Linters / lint-cpp (push) Waiting to run
Linters / format-cpp (push) Waiting to run
Linters / lint-js-and-md (push) Waiting to run
Linters / lint-py (push) Waiting to run
Linters / lint-yaml (push) Waiting to run
Linters / lint-sh (push) Waiting to run
Linters / lint-codeowners (push) Waiting to run
Linters / lint-pr-url (push) Waiting to run
Linters / lint-readme (push) Waiting to run
Notify on Push / Notify on Force Push on `main` (push) Waiting to run
Notify on Push / Notify on Push on `main` that lacks metadata (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Find inactive collaborators / find (push) Has been cancelled
PR-URL: https://github.com/nodejs/node/pull/48409 Reviewed-By: Jacob Smith <jacob@frende.me>
29 lines
1.1 KiB
JavaScript
29 lines
1.1 KiB
JavaScript
// We must load the CJS version here because the ESM wrapper call `hasIPv6`
|
|
// which compiles a RegEx.
|
|
// eslint-disable-next-line node-core/require-common-first
|
|
import common from '../common/index.js';
|
|
import assert from 'node:assert';
|
|
|
|
if (!common.isInsideDirWithUnusualChars) {
|
|
assert.strictEqual(RegExp.$_, '');
|
|
assert.strictEqual(RegExp.$0, undefined);
|
|
assert.strictEqual(RegExp.$1, '');
|
|
assert.strictEqual(RegExp.$2, '');
|
|
assert.strictEqual(RegExp.$3, '');
|
|
assert.strictEqual(RegExp.$4, '');
|
|
assert.strictEqual(RegExp.$5, '');
|
|
assert.strictEqual(RegExp.$6, '');
|
|
assert.strictEqual(RegExp.$7, '');
|
|
assert.strictEqual(RegExp.$8, '');
|
|
assert.strictEqual(RegExp.$9, '');
|
|
assert.strictEqual(RegExp.input, '');
|
|
assert.strictEqual(RegExp.lastMatch, '');
|
|
assert.strictEqual(RegExp.lastParen, '');
|
|
assert.strictEqual(RegExp.leftContext, '');
|
|
assert.strictEqual(RegExp.rightContext, '');
|
|
assert.strictEqual(RegExp['$&'], '');
|
|
assert.strictEqual(RegExp['$`'], '');
|
|
assert.strictEqual(RegExp['$+'], '');
|
|
assert.strictEqual(RegExp["$'"], '');
|
|
}
|