Skip to content

Intl needed for v. 9 #1143

@Uzlopak

Description

@Uzlopak

node builds without intl are failing due to this line

const SPECIAL_CHAR_REGEXP = /\p{Separator}|\p{Other}/gu;

execa is used by borp @mcollina. borp is used in undici, thus breaking the without intl unit tests.

> borp@0.17.0 unit
> node borp.js --ignore "fixtures/**/*" --coverage --coverage-exclude "fixtures/**/*" --coverage-exclude "test*/**/*"

file:///home/runner/work/borp/borp/node_modules/execa/lib/arguments/escape.js:41
const SPECIAL_CHAR_REGEXP = /\p{Separator}|\p{Other}/gu;
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Invalid regular expression: /\p{Separator}|\p{Other}/: Invalid property name
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:152:18)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:299:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions