diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
deleted file mode 100644
index 3e8e7ecbfbcbdd..00000000000000
--- a/.devcontainer/Dockerfile
+++ /dev/null
@@ -1 +0,0 @@
-FROM nodejs/devcontainer:nightly
diff --git a/.devcontainer/.devcontainer.json b/.devcontainer/devcontainer.json
similarity index 57%
rename from .devcontainer/.devcontainer.json
rename to .devcontainer/devcontainer.json
index 2e3cde606ce422..a69b66f442b666 100644
--- a/.devcontainer/.devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,12 +1,12 @@
{
"name": "Node.js Core Developer Environment",
"extensions": [
- "github.vscode-pull-request-github",
- "ms-vsliveshare.vsliveshare",
- "vscode-icons-team.vscode-icons",
- "visualstudioexptteam.vscodeintellicode"
+ "github.vscode-pull-request-github",
+ "ms-vsliveshare.vsliveshare",
+ "vscode-icons-team.vscode-icons",
+ "visualstudioexptteam.vscodeintellicode"
],
- "dockerFile": "Dockerfile",
+ "image": "nodejs/devcontainer:nightly",
"initializeCommand": "docker system prune -f -a",
"settings": {
"terminal.integrated.profiles.linux": {
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index ab2287a7abd15c..e4241de7d42e75 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -17,6 +17,7 @@
/CONTRIBUTING.md @nodejs/tsc
/doc/contributing/*.md @nodejs/tsc
/GOVERNANCE.md @nodejs/tsc
+/SECURITY.md @nodejs/tsc
/LICENSE @nodejs/tsc
/onboarding.md @nodejs/tsc
@@ -124,7 +125,7 @@
# Startup
-/benchmark/misc/startup.js @nodejs/startup
+/benchmark/misc/startup-* @nodejs/startup
/lib/internal/bootstrap/* @nodejs/startup
/src/node_builtins* @nodejs/startup
/src/node_realm* @nodejs/startup @nodejs/realm
@@ -173,6 +174,7 @@
/.github/workflows/tools.yml @nodejs/security-wg
/.github/workflows/update-openssl.yml @nodejs/security-wg
/.github/workflows/update-v8.yml @nodejs/security-wg @nodejs/v8-update
+/deps @nodejs/security-wg
/tools/dep_updaters/* @nodejs/security-wg
# Web Standards
diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml
index c1a9ac0ad0573b..823bb4be4f0dbb 100644
--- a/.github/workflows/auto-start-ci.yml
+++ b/.github/workflows/auto-start-ci.yml
@@ -10,9 +10,8 @@ on:
concurrency: ${{ github.workflow }}
-# todo (node-fetch not working on 18, waiting for node-core-utils to fix)
env:
- NODE_VERSION: 16
+ NODE_VERSION: lts/*
permissions:
contents: read
@@ -51,7 +50,7 @@ jobs:
persist-credentials: false
- name: Install Node.js
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml
index c941a88cd43fbd..7e5d27d4247015 100644
--- a/.github/workflows/build-tarball.yml
+++ b/.github/workflows/build-tarball.yml
@@ -43,7 +43,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -57,7 +57,7 @@ jobs:
mkdir tarballs
mv *.tar.gz tarballs
- name: Upload tarball artifact
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: tarballs
path: tarballs
@@ -69,13 +69,13 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Download tarball
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
+ uses: actions/download-artifact@87c55149d96e628cc2ef7e6fc2aab372015aec85 # v4.1.3
with:
name: tarballs
path: tarballs
@@ -90,8 +90,8 @@ jobs:
- name: Build
run: |
cd $TAR_DIR
- make build-ci -j2 V=1
+ make build-ci -j4 V=1
- name: Test
run: |
cd $TAR_DIR
- make run-ci -j2 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9"
+ make run-ci -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9"
diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml
index 537901eb33e48a..c13830c59ba601 100644
--- a/.github/workflows/build-windows.yml
+++ b/.github/workflows/build-windows.yml
@@ -2,10 +2,13 @@ name: Build Windows
on:
pull_request:
- paths-ignore:
- - README.md
- - .github/**
- - '!.github/workflows/build-windows.yml'
+ paths:
+ - lib/**/*.js
+ - Makefile
+ - src/**/*.cc
+ - src/**/*.h
+ - tools/gyp/**
+ - .github/workflows/build-windows.yml
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
@@ -13,10 +16,13 @@ on:
- canary
- v[0-9]+.x-staging
- v[0-9]+.x
- paths-ignore:
- - README.md
- - .github/**
- - '!.github/workflows/build-windows.yml'
+ paths:
+ - lib/**/*.js
+ - Makefile
+ - src/**/*.cc
+ - src/**/*.h
+ - tools/gyp/**
+ - .github/workflows/build-windows.yml
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -42,7 +48,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
diff --git a/.github/workflows/close-stale-feature-requests.yml b/.github/workflows/close-stale-feature-requests.yml
index ca2bd3a0d86caf..f8f086af04dae0 100644
--- a/.github/workflows/close-stale-feature-requests.yml
+++ b/.github/workflows/close-stale-feature-requests.yml
@@ -39,7 +39,7 @@ jobs:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
+ - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 180
diff --git a/.github/workflows/close-stalled.yml b/.github/workflows/close-stalled.yml
index 8fec9f1d6c417b..7ece19e2e2d6b2 100644
--- a/.github/workflows/close-stalled.yml
+++ b/.github/workflows/close-stalled.yml
@@ -20,7 +20,7 @@ jobs:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
- - uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
+ - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-close: 30
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml
index f5d59079aabf11..6edd0980695e97 100644
--- a/.github/workflows/commit-lint.yml
+++ b/.github/workflows/commit-lint.yml
@@ -23,7 +23,7 @@ jobs:
persist-credentials: false
- run: git reset HEAD^2
- name: Install Node.js
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Validate commit message
diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml
index cd5bbb83007aae..7657a7790a94e1 100644
--- a/.github/workflows/commit-queue.yml
+++ b/.github/workflows/commit-queue.yml
@@ -71,7 +71,7 @@ jobs:
# Install dependencies
- name: Install Node.js
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install @node-core/utils
diff --git a/.github/workflows/coverage-linux-without-intl.yml b/.github/workflows/coverage-linux-without-intl.yml
index f54433408bfd29..5d30b97f576828 100644
--- a/.github/workflows/coverage-linux-without-intl.yml
+++ b/.github/workflows/coverage-linux-without-intl.yml
@@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -53,11 +53,11 @@ jobs:
- name: Install gcovr
run: pip install gcovr==4.2
- name: Build
- run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn --coverage --without-intl"
+ run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage --without-intl"
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
# The cause is most likely coverage's use of the inspector.
- name: Test
- run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j2 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
+ run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
- name: Report JS
run: npx c8 report --check-coverage
env:
@@ -68,6 +68,6 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
+ uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
directory: ./coverage
diff --git a/.github/workflows/coverage-linux.yml b/.github/workflows/coverage-linux.yml
index 9d1c1b25ad6792..43dded115d9488 100644
--- a/.github/workflows/coverage-linux.yml
+++ b/.github/workflows/coverage-linux.yml
@@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -53,11 +53,11 @@ jobs:
- name: Install gcovr
run: pip install gcovr==4.2
- name: Build
- run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
+ run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
# The cause is most likely coverage's use of the inspector.
- name: Test
- run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j2 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
+ run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
- name: Report JS
run: npx c8 report --check-coverage
env:
@@ -68,6 +68,6 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
+ uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
directory: ./coverage
diff --git a/.github/workflows/coverage-windows.yml b/.github/workflows/coverage-windows.yml
index e837fa04a30e5f..1d00175325f33b 100644
--- a/.github/workflows/coverage-windows.yml
+++ b/.github/workflows/coverage-windows.yml
@@ -45,7 +45,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
@@ -67,6 +67,6 @@ jobs:
- name: Clean tmp
run: npx rimraf ./coverage/tmp
- name: Upload
- uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
+ uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0
with:
directory: ./coverage
diff --git a/.github/workflows/daily-wpt-fyi.yml b/.github/workflows/daily-wpt-fyi.yml
index 96947ca22eb561..1bef86c64336fe 100644
--- a/.github/workflows/daily-wpt-fyi.yml
+++ b/.github/workflows/daily-wpt-fyi.yml
@@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -45,7 +45,7 @@ jobs:
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-x64"))][0].version')" >> $GITHUB_ENV
- name: Install Node.js
id: setup-node
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NIGHTLY || matrix.node-version }}
check-latest: true
@@ -121,10 +121,10 @@ jobs:
run: cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json
- name: Upload GitHub Actions artifact
if: ${{ env.WPT_REPORT != '' }}
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
path: out/wpt/wptreport-*.json
- name: WPT Reports
+ name: WPT Report for ${{ steps.setup-node.outputs.node-version }}
if-no-files-found: error
- name: Upload WPT Report to wpt.fyi API
if: ${{ env.WPT_REPORT != '' }}
diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml
index aff2f1ccb678e6..d5f458f5b31a35 100644
--- a/.github/workflows/daily.yml
+++ b/.github/workflows/daily.yml
@@ -21,7 +21,7 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index ffb21dc8540d20..5de7373a8baf35 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -28,14 +28,14 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
run: NODE=$(command -v node) make doc-only
- - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ - uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: docs
path: out/doc
diff --git a/.github/workflows/find-inactive-collaborators.yml b/.github/workflows/find-inactive-collaborators.yml
index 8376927156cbb2..4b60ad4b40f9ee 100644
--- a/.github/workflows/find-inactive-collaborators.yml
+++ b/.github/workflows/find-inactive-collaborators.yml
@@ -25,7 +25,7 @@ jobs:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
diff --git a/.github/workflows/find-inactive-tsc.yml b/.github/workflows/find-inactive-tsc.yml
index 2fe7c15fea940c..b8ef8ef1f92d8a 100644
--- a/.github/workflows/find-inactive-tsc.yml
+++ b/.github/workflows/find-inactive-tsc.yml
@@ -34,7 +34,7 @@ jobs:
repository: nodejs/TSC
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index c3de444958e396..bb7b2d5cdbe572 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -29,7 +29,7 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
@@ -44,7 +44,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -60,11 +60,11 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -97,7 +97,7 @@ jobs:
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
@@ -122,7 +122,7 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
@@ -139,7 +139,7 @@ jobs:
with:
persist-credentials: false
- name: Use Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml
index cba8bfecbee83e..e74d17781bea19 100644
--- a/.github/workflows/scorecard.yml
+++ b/.github/workflows/scorecard.yml
@@ -33,7 +33,7 @@ jobs:
steps:
- name: Harden Runner
- uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
+ uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
@@ -65,7 +65,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: Upload artifact
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
+ uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: SARIF file
path: results.sarif
@@ -73,6 +73,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: Upload to code-scanning
- uses: github/codeql-action/upload-sarif@74483a38d39275f33fcff5f35b679b5ca4a26a99 # v2.22.5
+ uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
sarif_file: results.sarif
diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml
index 4db69c4c9ab90b..c97d55d4e8bef8 100644
--- a/.github/workflows/test-asan.yml
+++ b/.github/workflows/test-asan.yml
@@ -51,12 +51,12 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
- run: make build-ci -j2 V=1
+ run: make build-ci -j4 V=1
- name: Test
- run: make run-ci -j2 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' -t 300 --measure-flakiness 9"
+ run: make run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' -t 300 --measure-flakiness 9"
diff --git a/.github/workflows/test-internet.yml b/.github/workflows/test-internet.yml
index 3d92b245eb19f5..2c2e8060d9847f 100644
--- a/.github/workflows/test-internet.yml
+++ b/.github/workflows/test-internet.yml
@@ -44,12 +44,12 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
- run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn"
+ run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"
- name: Test Internet
- run: make test-internet -j2 V=1;
+ run: make test-internet -j4 V=1;
diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml
index 2f9e13caf67cfb..3dd559cff24da0 100644
--- a/.github/workflows/test-linux.yml
+++ b/.github/workflows/test-linux.yml
@@ -38,12 +38,12 @@ jobs:
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
- run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn"
+ run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"
- name: Test
- run: make run-ci -j2 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
+ run: make run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml
index cef03a2bb6decc..ae76bfa175523d 100644
--- a/.github/workflows/test-macos.yml
+++ b/.github/workflows/test-macos.yml
@@ -38,13 +38,13 @@ permissions:
jobs:
test-macOS:
if: github.event.pull_request.draft == false
- runs-on: macos-latest
+ runs-on: macos-14
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
diff --git a/.github/workflows/timezone-update.yml b/.github/workflows/timezone-update.yml
index 12b93abceed7d0..00158082692fc6 100644
--- a/.github/workflows/timezone-update.yml
+++ b/.github/workflows/timezone-update.yml
@@ -34,12 +34,22 @@ jobs:
- name: Record new version
run: echo "new_version=$(ls icu-data/tzdata/icunew | tail -1)" >> $GITHUB_ENV
+ - name: Record current version
+ run: echo "current_version=$(cat ./test/fixtures/tz-version.txt)" >> $GITHUB_ENV
+
+ - name: Compare versions
+ run: |
+ echo "Comparing current version ${{ env.current_version }} to new version ${{ env.new_version }}"
+
- run: ./tools/update-timezone.mjs
+ if: ${{ env.new_version != env.current_version }}
- name: Update the expected timezone version in test
+ if: ${{ env.new_version != env.current_version }}
run: echo "${{ env.new_version }}" > test/fixtures/tz-version.txt
- name: Open Pull Request
+ if: ${{ env.new_version != env.current_version }}
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 # Create a PR or update the Action's existing PR
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 3ff354d55362c6..91125e06c7008b 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -27,7 +27,7 @@ on:
- googletest
- histogram
- icu
- - libuv
+ # - libuv
- lint-md-dependencies
- llhttp
- minimatch
@@ -173,14 +173,17 @@ jobs:
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
- - id: libuv
- subsystem: deps
- label: dependencies
- run: |
- ./tools/dep_updaters/update-libuv.sh > temp-output
- cat temp-output
- tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
- rm temp-output
+ # libuv update was disabled because of Feb 14, 2024 security releas
+ # modified the bundled version of libuv, we cannot automatically update
+ # libuv without potentially undoing those changes.
+ # - id: libuv
+ # subsystem: deps
+ # label: dependencies
+ # run: |
+ # ./tools/dep_updaters/update-libuv.sh > temp-output
+ # cat temp-output
+ # tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
+ # rm temp-output
- id: lint-md-dependencies
subsystem: tools
label: tools
@@ -291,7 +294,7 @@ jobs:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
if: matrix.id == 'icu' && (github.event_name == 'schedule' || inputs.id == 'all' || inputs.id == matrix.id)
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
+ uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- run: ${{ matrix.run }}
diff --git a/.github/workflows/update-openssl.yml b/.github/workflows/update-openssl.yml
index 95802feaee36f3..23361dec160467 100644
--- a/.github/workflows/update-openssl.yml
+++ b/.github/workflows/update-openssl.yml
@@ -10,7 +10,7 @@ permissions:
contents: read
jobs:
- openssl-v3-update:
+ openssl-update:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
steps:
@@ -19,7 +19,7 @@ jobs:
persist-credentials: false
- name: Check and download new OpenSSL version
run: |
- ./tools/dep_updaters/update-openssl.sh download_v3 > temp-output
+ ./tools/dep_updaters/update-openssl.sh download > temp-output
cat temp-output
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
rm temp-output
@@ -58,52 +58,3 @@ jobs:
branch: actions/tools-update-openssl # Custom branch *just* for this Action.
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
path: deps/openssl
- openssl-v1-update:
- if: github.repository == 'nodejs/node'
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- with:
- persist-credentials: false
- ref: v16.x-staging
- - name: Check and download new OpenSSL version
- run: |
- ./tools/dep_updaters/update-openssl.sh download_v1 > temp-output
- cat temp-output
- tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
- rm temp-output
- env:
- GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
- - name: Create PR with first commit
- if: env.NEW_VERSION
- uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
- # Creates a PR with the new OpenSSL source code committed
- env:
- GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
- with:
- author: Node.js GitHub Bot
- body: This is an automated update of OpenSSL to ${{ env.NEW_VERSION }}.
- branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
- commit-message: 'deps: upgrade openssl sources to quictls/openssl-${{ env.NEW_VERSION }}'
- labels: dependencies
- title: '[v16.x] deps: update OpenSSL to ${{ env.NEW_VERSION }}'
- path: deps/openssl
- update-pull-request-title-and-body: true
- - name: Regenerate platform specific files
- if: env.NEW_VERSION
- run: |
- sudo apt install -y nasm libtext-template-perl
- ./tools/dep_updaters/update-openssl.sh regenerate
- env:
- GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
- - name: Add second commit
- # Adds a second commit to the PR with the generated platform-dependent files
- if: env.NEW_VERSION
- uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
- env:
- GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
- with:
- author: Node.js GitHub Bot
- branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
- commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
- path: deps/openssl
diff --git a/.github/workflows/update-release-links.yml b/.github/workflows/update-release-links.yml
index fc9e6ad084cd3b..3eaa61260545e8 100644
--- a/.github/workflows/update-release-links.yml
+++ b/.github/workflows/update-release-links.yml
@@ -1,8 +1,9 @@
name: Update release links
on:
+ workflow_dispatch:
release:
- types: [published]
+ types: [released]
permissions:
contents: read
diff --git a/.github/workflows/update-v8.yml b/.github/workflows/update-v8.yml
index a22ff2f013864b..22ba68435101a5 100644
--- a/.github/workflows/update-v8.yml
+++ b/.github/workflows/update-v8.yml
@@ -20,7 +20,7 @@ jobs:
with:
persist-credentials: false
- name: Cache node modules and update-v8
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
+ uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
id: cache-v8-npm
env:
cache-name: cache-v8-npm
@@ -30,7 +30,7 @@ jobs:
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install Node.js
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
+ uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install @node-core/utils
diff --git a/.gitignore b/.gitignore
index 79920931ce4e15..34c26e3a81e051 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,6 +32,7 @@
/perf.data
/perf.data.old
/tags
+/tags.*
/doc/api.xml
/node
/node_g
diff --git a/.mailmap b/.mailmap
index 9535707681f48a..30584cce8b7fb1 100644
--- a/.mailmap
+++ b/.mailmap
@@ -125,6 +125,7 @@ Daniel Chcouri <333222@gmail.com>
Daniel Clifford
Daniel Gröber
Daniel Gröber
+Daniel Lemire
Daniel Paulino
Daniel Pihlström
Daniel Wang
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35ac4fb4b8c118..1b005c47546ed2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,7 +35,8 @@ release.
-20.11.1
+20.12.0
+20.11.1
20.11.0
20.10.0
20.9.0
diff --git a/LICENSE b/LICENSE
index 9188c2223d1f8b..21ab4d655e6650 100644
--- a/LICENSE
+++ b/LICENSE
@@ -132,52 +132,45 @@ The externally maintained libraries used by Node.js are:
- ICU, located at deps/icu-small, is licensed as follows:
"""
- UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
-
- See Terms of Use
- for definitions of Unicode Inc.’s Data Files and Software.
-
- NOTICE TO USER: Carefully read the following legal agreement.
- BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S
- DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"),
- YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
- TERMS AND CONDITIONS OF THIS AGREEMENT.
- IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE
- THE DATA FILES OR SOFTWARE.
+ UNICODE LICENSE V3
COPYRIGHT AND PERMISSION NOTICE
- Copyright © 1991-2023 Unicode, Inc. All rights reserved.
- Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
+ Copyright © 2016-2023 Unicode, Inc.
- Permission is hereby granted, free of charge, to any person obtaining
- a copy of the Unicode data files and any associated documentation
- (the "Data Files") or Unicode software and any associated documentation
- (the "Software") to deal in the Data Files or Software
- without restriction, including without limitation the rights to use,
- copy, modify, merge, publish, distribute, and/or sell copies of
- the Data Files or Software, and to permit persons to whom the Data Files
- or Software are furnished to do so, provided that either
- (a) this copyright and permission notice appear with all copies
- of the Data Files or Software, or
- (b) this copyright and permission notice appear in associated
- Documentation.
-
- THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT OF THIRD PARTY RIGHTS.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
- NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
- DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- PERFORMANCE OF THE DATA FILES OR SOFTWARE.
+ NOTICE TO USER: Carefully read the following legal agreement. BY
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
- Except as contained in this notice, the name of a copyright holder
- shall not be used in advertising or otherwise to promote the sale,
- use or other dealings in these Data Files or Software without prior
- written authorization of the copyright holder.
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of data files and any associated documentation (the "Data Files") or
+ software and any associated documentation (the "Software") to deal in the
+ Data Files or Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
+ copies of the Data Files or Software, and to permit persons to whom the
+ Data Files or Software are furnished to do so, provided that either (a)
+ this copyright and permission notice appear with all copies of the Data
+ Files or Software, or (b) this copyright and permission notice appear in
+ associated Documentation.
+
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+ THIRD PARTY RIGHTS.
+
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
+ FILES OR SOFTWARE.
+
+ Except as contained in this notice, the name of a copyright holder shall
+ not be used in advertising or otherwise to promote the sale, use or other
+ dealings in these Data Files or Software without prior written
+ authorization of the copyright holder.
----------------------------------------------------------------------
@@ -1292,9 +1285,9 @@ The externally maintained libraries used by Node.js are:
- zlib, located at deps/zlib, is licensed as follows:
"""
zlib.h -- interface of the 'zlib' general purpose compression library
- version 1.2.13.1, October xxth, 2022
+ version 1.3.0.1, August xxth, 2023
- Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
+ Copyright (C) 1995-2023 Jean-loup Gailly and Mark Adler
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
@@ -1774,6 +1767,35 @@ The externally maintained libraries used by Node.js are:
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
+- gypi_to_gn.py, located at tools/gypi_to_gn.py, is licensed as follows:
+ """
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following disclaimer
+ in the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of Google LLC nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ """
+
- ESLint, located at tools/node_modules/eslint, is licensed as follows:
"""
Copyright OpenJS Foundation and other contributors,
diff --git a/Makefile b/Makefile
index b7871bf218572c..7bd80d06c17125 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,8 @@ EXEEXT := $(shell $(PYTHON) -c \
"import sys; print('.exe' if sys.platform == 'win32' else '')")
NODE_EXE = node$(EXEEXT)
-NODE ?= ./$(NODE_EXE)
+# Use $(PWD) so we can cd to anywhere before calling this
+NODE ?= "$(PWD)/$(NODE_EXE)"
NODE_G_EXE = node_g$(EXEEXT)
NPM ?= ./deps/npm/bin/npm-cli.js
@@ -91,10 +92,9 @@ BUILD_RELEASE_FLAGS ?= $(BUILD_DOWNLOAD_FLAGS) $(BUILD_INTL_FLAGS)
V ?= 0
# Use -e to double check in case it's a broken link
-# Use $(PWD) so we can cd to anywhere before calling this
available-node = \
- if [ -x $(PWD)/$(NODE) ] && [ -e $(PWD)/$(NODE) ]; then \
- $(PWD)/$(NODE) $(1); \
+ if [ -x "$(NODE)" ] && [ -e "$(NODE)" ]; then \
+ "$(NODE)" $(1); \
elif [ -x `command -v node` ] && [ -e `command -v node` ] && [ `command -v node` ]; then \
`command -v node` $(1); \
else \
@@ -187,11 +187,11 @@ config.gypi: configure configure.py src/node_version.h
.PHONY: install
install: all ## Installs node into $PREFIX (default=/usr/local).
- $(PYTHON) tools/install.py $@ '$(DESTDIR)' '$(PREFIX)'
+ $(PYTHON) tools/install.py $@ --dest-dir '$(DESTDIR)' --prefix '$(PREFIX)'
.PHONY: uninstall
uninstall: ## Uninstalls node from $PREFIX (default=/usr/local).
- $(PYTHON) tools/install.py $@ '$(DESTDIR)' '$(PREFIX)'
+ $(PYTHON) tools/install.py $@ --dest-dir '$(DESTDIR)' --prefix '$(PREFIX)'
.PHONY: clean
.NOTPARALLEL: clean
@@ -379,6 +379,28 @@ test/addons/.docbuildstamp: $(DOCBUILDSTAMP_PREREQS) tools/doc/node_modules
[ $$? -eq 0 ] && touch $@; \
fi
+# All files that will be included in headers tarball should be listed as deps
+# for generating headers. The list is manually synchronized with install.py.
+ADDONS_HEADERS_PREREQS := tools/install.py \
+ config.gypi common.gypi \
+ $(wildcard deps/openssl/config/*.h) \
+ $(wildcard deps/openssl/openssl/include/openssl/*.h) \
+ $(wildcard deps/uv/include/*.h) \
+ $(wildcard deps/uv/include/*/*.h) \
+ $(wildcard deps/v8/include/*.h) \
+ $(wildcard deps/v8/include/*/*.h) \
+ deps/zlib/zconf.h deps/zlib/zlib.h \
+ src/node.h src/node_api.h src/js_native_api.h src/js_native_api_types.h \
+ src/node_api_types.h src/node_buffer.h src/node_object_wrap.h \
+ src/node_version.h
+
+ADDONS_HEADERS_DIR = out/$(BUILDTYPE)/addons_headers
+
+# Generate node headers which will be used for building addons.
+test/addons/.headersbuildstamp: $(ADDONS_HEADERS_PREREQS)
+ $(PYTHON) tools/install.py install --headers-only --dest-dir '$(ADDONS_HEADERS_DIR)' --prefix '/'
+ @touch $@
+
ADDONS_BINDING_GYPS := \
$(filter-out test/addons/??_*/binding.gyp, \
$(wildcard test/addons/*/binding.gyp))
@@ -387,16 +409,11 @@ ADDONS_BINDING_SOURCES := \
$(filter-out test/addons/??_*/*.cc, $(wildcard test/addons/*/*.cc)) \
$(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h))
-ADDONS_PREREQS := config.gypi \
- deps/npm/node_modules/node-gyp/package.json tools/build-addons.mjs \
- deps/uv/include/*.h deps/v8/include/*.h \
- src/node.h src/node_buffer.h src/node_object_wrap.h src/node_version.h
+ADDONS_PREREQS := test/addons/.headersbuildstamp \
+ deps/npm/node_modules/node-gyp/package.json tools/build_addons.py
define run_build_addons
-env npm_config_loglevel=$(LOGLEVEL) npm_config_nodedir="$$PWD" \
- npm_config_python="$(PYTHON)" $(NODE) "$$PWD/tools/build-addons.mjs" \
- "$$PWD/deps/npm/node_modules/node-gyp/bin/node-gyp.js" \
- $1
+env $(PYTHON) "$$PWD/tools/build_addons.py" --loglevel=$(LOGLEVEL) --headers-dir "$(ADDONS_HEADERS_DIR)" $1
touch $2
endef
@@ -429,8 +446,7 @@ JS_NATIVE_API_BINDING_SOURCES := \
# Implicitly depends on $(NODE_EXE), see the build-js-native-api-tests rule for rationale.
test/js-native-api/.buildstamp: $(ADDONS_PREREQS) \
$(JS_NATIVE_API_BINDING_GYPS) $(JS_NATIVE_API_BINDING_SOURCES) \
- src/node_api.h src/node_api_types.h src/js_native_api.h \
- src/js_native_api_types.h src/js_native_api_v8.h src/js_native_api_v8_internals.h
+ src/js_native_api_v8.h src/js_native_api_v8_internals.h
@$(call run_build_addons,"$$PWD/test/js-native-api",$@)
.PHONY: build-js-native-api-tests
@@ -454,8 +470,7 @@ NODE_API_BINDING_SOURCES := \
# Implicitly depends on $(NODE_EXE), see the build-node-api-tests rule for rationale.
test/node-api/.buildstamp: $(ADDONS_PREREQS) \
$(NODE_API_BINDING_GYPS) $(NODE_API_BINDING_SOURCES) \
- src/node_api.h src/node_api_types.h src/js_native_api.h \
- src/js_native_api_types.h src/js_native_api_v8.h src/js_native_api_v8_internals.h
+ src/js_native_api_v8.h src/js_native_api_v8_internals.h
@$(call run_build_addons,"$$PWD/test/node-api",$@)
.PHONY: build-node-api-tests
@@ -660,9 +675,10 @@ test-addons: test-build test-js-native-api test-node-api
.PHONY: test-addons-clean
.NOTPARALLEL: test-addons-clean
test-addons-clean:
+ $(RM) -r "$(ADDONS_HEADERS_DIR)"
$(RM) -r test/addons/??_*/
$(RM) -r test/addons/*/build
- $(RM) test/addons/.buildstamp test/addons/.docbuildstamp
+ $(RM) test/addons/.buildstamp test/addons/.docbuildstamp test/addons/.headersbuildstamp
$(MAKE) test-js-native-api-clean
$(MAKE) test-node-api-clean
@@ -1216,7 +1232,7 @@ $(TARBALL)-headers: release-only
--tag=$(TAG) \
--release-urlbase=$(RELEASE_URLBASE) \
$(CONFIG_FLAGS) $(BUILD_RELEASE_FLAGS)
- HEADERS_ONLY=1 $(PYTHON) tools/install.py install '$(TARNAME)' '/'
+ $(PYTHON) tools/install.py install --headers-only --dest-dir '$(TARNAME)' --prefix '/'
find $(TARNAME)/ -type l | xargs $(RM)
tar -cf $(TARNAME)-headers.tar $(TARNAME)
$(RM) -r $(TARNAME)
diff --git a/README.md b/README.md
index f09e1044227a10..356542a581a0e0 100644
--- a/README.md
+++ b/README.md
@@ -190,14 +190,14 @@ For information about the governance of the Node.js project, see
**Moshe Atlow** <> (he/him)
* [RafaelGSS](https://github.com/RafaelGSS) -
**Rafael Gonzaga** <> (he/him)
-* [RaisinTen](https://github.com/RaisinTen) -
- **Darshan Sen** <> (he/him)
* [richardlau](https://github.com/richardlau) -
**Richard Lau** <>
* [ronag](https://github.com/ronag) -
**Robert Nagy** <>
* [ruyadorno](https://github.com/ruyadorno) -
**Ruy Adorno** <> (he/him)
+* [ShogunPanda](https://github.com/ShogunPanda) -
+ **Paolo Insogna** <> (he/him)
* [targos](https://github.com/targos) -
**Michaël Zasso** <> (he/him)
* [tniessen](https://github.com/tniessen) -
@@ -266,6 +266,8 @@ For information about the governance of the Node.js project, see
**Alexis Campailla** <>
* [piscisaureus](https://github.com/piscisaureus) -
**Bert Belder** <>
+* [RaisinTen](https://github.com/RaisinTen) -
+ **Darshan Sen** <> (he/him)
* [sam-github](https://github.com/sam-github) -
**Sam Roberts** <>
* [shigeki](https://github.com/shigeki) -
@@ -333,8 +335,6 @@ For information about the governance of the Node.js project, see
**Debadree Chatterjee** <> (he/him)
* [deokjinkim](https://github.com/deokjinkim) -
**Deokjin Kim** <> (he/him)
-* [devnexen](https://github.com/devnexen) -
- **David Carlier** <>
* [devsnek](https://github.com/devsnek) -
**Gus Caplan** <> (they/them)
* [edsadr](https://github.com/edsadr) -
@@ -367,8 +367,6 @@ For information about the governance of the Node.js project, see
**Zeyu "Alex" Yang** <> (he/him)
* [iansu](https://github.com/iansu) -
**Ian Sutherland** <>
-* [JacksonTian](https://github.com/JacksonTian) -
- **Jackson Tian** <>
* [JakobJingleheimer](https://github.com/JakobJingleheimer) -
**Jacob Smith** <> (he/him)
* [jasnell](https://github.com/jasnell) -
@@ -391,6 +389,8 @@ For information about the governance of the Node.js project, see
**Keyhan Vakil** <>
* [legendecas](https://github.com/legendecas) -
**Chengzhong Wu** <> (he/him)
+* [lemire](https://github.com/lemire) -
+ **Daniel Lemire** <>
* [linkgoron](https://github.com/linkgoron) -
**Nitzan Uziely** <>
* [LiviaMedeiros](https://github.com/LiviaMedeiros) -
@@ -413,8 +413,6 @@ For information about the governance of the Node.js project, see
**Mestery** <> (he/him)
* [mhdawson](https://github.com/mhdawson) -
**Michael Dawson** <> (he/him)
-* [miladfarca](https://github.com/miladfarca) -
- **Milad Fa** <> (he/him)
* [mildsunrise](https://github.com/mildsunrise) -
**Alba Mendez** <> (she/her)
* [MoLow](https://github.com/MoLow) -
@@ -427,16 +425,12 @@ For information about the governance of the Node.js project, see
**Myles Borins** <> (he/him)
* [ovflowd](https://github.com/ovflowd) -
**Claudio Wunder** <> (he/they)
-* [oyyd](https://github.com/oyyd) -
- **Ouyang Yadong** <> (he/him)
* [panva](https://github.com/panva) -
**Filip Skokan** <> (he/him)
* [Qard](https://github.com/Qard) -
**Stephen Belanger** <> (he/him)
* [RafaelGSS](https://github.com/RafaelGSS) -
**Rafael Gonzaga** <> (he/him)
-* [RaisinTen](https://github.com/RaisinTen) -
- **Darshan Sen** <> (he/him)
* [rluvaton](https://github.com/rluvaton) -
**Raz Luvaton** <> (he/him)
* [richardlau](https://github.com/richardlau) -
@@ -447,8 +441,6 @@ For information about the governance of the Node.js project, see
**Robert Nagy** <>
* [ruyadorno](https://github.com/ruyadorno) -
**Ruy Adorno** <> (he/him)
-* [rvagg](https://github.com/rvagg) -
- **Rod Vagg** <>
* [ryzokuken](https://github.com/ryzokuken) -
**Ujjwal Sharma** <> (he/him)
* [santigimeno](https://github.com/santigimeno) -
@@ -487,6 +479,8 @@ For information about the governance of the Node.js project, see
**Yash Ladha** <> (he/him)
* [ZYSzys](https://github.com/ZYSzys) -
**Yongsheng Zhang** <> (he/him)
+* [zcbenz](https://github.com/zcbenz) -
+ **Cheng Zhao** (he/him)
@@ -527,6 +521,8 @@ For information about the governance of the Node.js project, see
**David Cai** <> (he/him)
* [davisjam](https://github.com/davisjam) -
**Jamie Davis** <> (he/him)
+* [devnexen](https://github.com/devnexen) -
+ **David Carlier** <>
* [digitalinfinity](https://github.com/digitalinfinity) -
**Hitesh Kanwathirtha** <> (he/him)
* [dmabupt](https://github.com/dmabupt) -
@@ -569,6 +565,8 @@ For information about the governance of the Node.js project, see
**Isaac Z. Schlueter** <>
* [italoacasas](https://github.com/italoacasas) -
**Italo A. Casas** <> (he/him)
+* [JacksonTian](https://github.com/JacksonTian) -
+ **Jackson Tian** <>
* [jasongin](https://github.com/jasongin) -
**Jason Ginchereau** <>
* [jbergstroem](https://github.com/jbergstroem) -
@@ -607,6 +605,8 @@ For information about the governance of the Node.js project, see
**Nicu Micleușanu** <> (he/him)
* [mikeal](https://github.com/mikeal) -
**Mikeal Rogers** <>
+* [miladfarca](https://github.com/miladfarca) -
+ **Milad Fa** <> (he/him)
* [misterdjules](https://github.com/misterdjules) -
**Julien Gilli** <>
* [mmarchini](https://github.com/mmarchini) -
@@ -625,6 +625,8 @@ For information about the governance of the Node.js project, see
**Alexis Campailla** <>
* [othiym23](https://github.com/othiym23) -
**Forrest L Norvell** <> (they/them/themself)
+* [oyyd](https://github.com/oyyd) -
+ **Ouyang Yadong** <> (he/him)
* [petkaantonov](https://github.com/petkaantonov) -
**Petka Antonov** <>
* [phillipj](https://github.com/phillipj) -
@@ -641,6 +643,8 @@ For information about the governance of the Node.js project, see
**Peter Marshall** <> (he/him)
* [puzpuzpuz](https://github.com/puzpuzpuz) -
**Andrey Pechkurov** <> (he/him)
+* [RaisinTen](https://github.com/RaisinTen) -
+ **Darshan Sen** <> (he/him)
* [refack](https://github.com/refack) -
**Refael Ackermann (רפאל פלחי)** <> (he/him/הוא/אתה)
* [rexagod](https://github.com/rexagod) -
@@ -659,6 +663,8 @@ For information about the governance of the Node.js project, see
**Ingvar Stepanyan** <>
* [rubys](https://github.com/rubys) -
**Sam Ruby** <>
+* [rvagg](https://github.com/rvagg) -
+ **Rod Vagg** <>
* [saghul](https://github.com/saghul) -
**Saúl Ibarra Corretgé** <>
* [sam-github](https://github.com/sam-github) -
@@ -737,8 +743,6 @@ maintaining the Node.js project.
**Preveen Padmanabhan** <> (he/him)
* [PoojaDurgad](https://github.com/PoojaDurgad) -
**Pooja Durgad** <>
-* [RaisinTen](https://github.com/RaisinTen) -
- **Darshan Sen** <>
* [VoltrexKeyva](https://github.com/VoltrexKeyva) -
**Mohammed Keyvanzadeh** <> (he/him)
diff --git a/SECURITY.md b/SECURITY.md
index 85c185df6006cb..7d62c76e5b898c 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -124,6 +124,8 @@ lead to a loss of confidentiality, integrity, or availability.
end being on the local machine or remote.
6. The file system when requiring a module.
See .
+7. The `node:wasi` module does not currently provide the comprehensive file
+ system security properties provided by some WASI runtimes.
Any unexpected behavior from the data manipulation from Node.js Internal
functions may be considered a vulnerability if they are exploitable via
@@ -199,6 +201,13 @@ the community they pose.
that artifact is large enough to impact performance or
cause the runtime to run out of resources.
+#### Vulnerabilities affecting software downloaded by Corepack
+
+* Corepack defaults to downloading the latest version of the software requested
+ by the user, or a specific version requested by the user. For this reason,
+ Node.js releases won't be affected by such vulnerabilities, users are
+ responsible to keep the software they use through Corepack up-to-date.
+
## Assessing experimental features reports
Experimental features are eligible to reports as any other stable feature of
diff --git a/benchmark/assert/deepequal-map.js b/benchmark/assert/deepequal-map.js
index 0b08c82c499a57..fb3f7cd316028f 100644
--- a/benchmark/assert/deepequal-map.js
+++ b/benchmark/assert/deepequal-map.js
@@ -5,7 +5,7 @@ const { deepEqual, deepStrictEqual, notDeepEqual, notDeepStrictEqual } =
require('assert');
const bench = common.createBenchmark(main, {
- n: [5e2],
+ n: [5e3],
len: [5e2],
strict: [0, 1],
method: [
diff --git a/benchmark/assert/deepequal-typedarrays.js b/benchmark/assert/deepequal-typedarrays.js
index c06ff8fb2f3099..86826d6588ef86 100644
--- a/benchmark/assert/deepequal-typedarrays.js
+++ b/benchmark/assert/deepequal-typedarrays.js
@@ -9,7 +9,7 @@ const bench = common.createBenchmark(main, {
'Float32Array',
'Uint32Array',
],
- n: [5e2],
+ n: [25000],
strict: [0, 1],
method: [
'deepEqual',
diff --git a/benchmark/async_hooks/async-local-storage-getstore-nested-resources.js b/benchmark/async_hooks/async-local-storage-getstore-nested-resources.js
index 05b43af627a79e..3474e801e01f35 100644
--- a/benchmark/async_hooks/async-local-storage-getstore-nested-resources.js
+++ b/benchmark/async_hooks/async-local-storage-getstore-nested-resources.js
@@ -16,7 +16,7 @@ const { AsyncLocalStorage, AsyncResource } = require('async_hooks');
*/
const bench = common.createBenchmark(main, {
resourceCount: [10, 100, 1000],
- n: [1e4],
+ n: [5e5],
});
function runBenchmark(store, n) {
diff --git a/benchmark/buffers/buffer-bytelength-string.js b/benchmark/buffers/buffer-bytelength-string.js
index fc0c005e7f9e6a..143da0215a613b 100644
--- a/benchmark/buffers/buffer-bytelength-string.js
+++ b/benchmark/buffers/buffer-bytelength-string.js
@@ -2,7 +2,8 @@
const common = require('../common');
const bench = common.createBenchmark(main, {
- type: ['one_byte', 'two_bytes', 'three_bytes', 'four_bytes'],
+ type: ['one_byte', 'two_bytes', 'three_bytes',
+ 'four_bytes', 'latin1'],
encoding: ['utf8', 'base64'],
repeat: [1, 2, 16, 256], // x16
n: [4e6],
@@ -14,6 +15,8 @@ const chars = {
two_bytes: 'ΰαβγδεζηθικλμνξο',
three_bytes: '挰挱挲挳挴挵挶挷挸挹挺挻挼挽挾挿',
four_bytes: '𠜎𠜱𠝹𠱓𠱸𠲖𠳏𠳕𠴕𠵼𠵿𠸎𠸏𠹷𠺝𠺢',
+ latin1: 'Un homme sage est supérieur à toutes ' +
+ 'les insultes qui peuvent lui être adressées, et la meilleure réponse est la patience et la modération.',
};
function getInput(type, repeat, encoding) {
diff --git a/benchmark/crypto/aes-gcm-throughput.js b/benchmark/crypto/aes-gcm-throughput.js
index 0ac88f6e6ee5ea..cf249c6b6d832a 100644
--- a/benchmark/crypto/aes-gcm-throughput.js
+++ b/benchmark/crypto/aes-gcm-throughput.js
@@ -3,7 +3,7 @@ const common = require('../common.js');
const crypto = require('crypto');
const keylen = { 'aes-128-gcm': 16, 'aes-192-gcm': 24, 'aes-256-gcm': 32 };
const bench = common.createBenchmark(main, {
- n: [500],
+ n: [2500],
cipher: ['aes-128-gcm', 'aes-192-gcm', 'aes-256-gcm'],
len: [1024, 4 * 1024, 16 * 1024, 64 * 1024, 256 * 1024, 1024 * 1024],
});
diff --git a/benchmark/crypto/create-hash.js b/benchmark/crypto/create-hash.js
new file mode 100644
index 00000000000000..119534d5c24f83
--- /dev/null
+++ b/benchmark/crypto/create-hash.js
@@ -0,0 +1,22 @@
+'use strict';
+
+const common = require('../common.js');
+const { createHash } = require('crypto');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ n: [1e5],
+});
+
+function main({ n }) {
+ const array = [];
+ for (let i = 0; i < n; ++i) {
+ array.push(null);
+ }
+ bench.start();
+ for (let i = 0; i < n; ++i) {
+ array[i] = createHash('sha1');
+ }
+ bench.end(n);
+ assert.strictEqual(typeof array[n - 1], 'object');
+}
diff --git a/benchmark/crypto/get-ciphers.js b/benchmark/crypto/get-ciphers.js
index 0ace9b49820db8..e3cd955a983dd2 100644
--- a/benchmark/crypto/get-ciphers.js
+++ b/benchmark/crypto/get-ciphers.js
@@ -3,7 +3,7 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
- n: [1, 5000],
+ n: [1, 500000],
v: ['crypto', 'tls'],
});
diff --git a/benchmark/crypto/hkdf.js b/benchmark/crypto/hkdf.js
index 61ae33cac0a0f6..98aa83594e2278 100644
--- a/benchmark/crypto/hkdf.js
+++ b/benchmark/crypto/hkdf.js
@@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
salt: ['', 'salt'],
info: ['', 'info'],
hash: ['sha256', 'sha512'],
- n: [1e3],
+ n: [1e4],
});
function measureSync(n, size, salt, info, hash, key) {
diff --git a/benchmark/crypto/oneshot-hash.js b/benchmark/crypto/oneshot-hash.js
new file mode 100644
index 00000000000000..0d518c5afe2e95
--- /dev/null
+++ b/benchmark/crypto/oneshot-hash.js
@@ -0,0 +1,42 @@
+'use strict';
+
+const common = require('../common.js');
+const { createHash, hash } = require('crypto');
+const path = require('path');
+const filepath = path.resolve(__dirname, '../../test/fixtures/snapshot/typescript.js');
+const fs = require('fs');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ length: [1000, 100_000],
+ method: ['md5', 'sha1', 'sha256'],
+ type: ['string', 'buffer'],
+ n: [100_000, 1000],
+}, {
+ combinationFilter: ({ length, n }) => {
+ return length * n <= 100_000 * 1000;
+ },
+});
+
+function main({ length, type, method, n }) {
+ let data = fs.readFileSync(filepath);
+ if (type === 'string') {
+ data = data.toString().slice(0, length);
+ } else {
+ data = Uint8Array.prototype.slice.call(data, 0, length);
+ }
+
+ const oneshotHash = hash ?
+ (method, input) => hash(method, input, 'hex') :
+ (method, input) => createHash(method).update(input).digest('hex');
+ const array = [];
+ for (let i = 0; i < n; i++) {
+ array.push(null);
+ }
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ array[i] = oneshotHash(method, data);
+ }
+ bench.end(n);
+ assert.strictEqual(typeof array[n - 1], 'string');
+}
diff --git a/benchmark/crypto/randomBytes.js b/benchmark/crypto/randomBytes.js
index 50ad3f08387566..a47080a017d250 100644
--- a/benchmark/crypto/randomBytes.js
+++ b/benchmark/crypto/randomBytes.js
@@ -3,14 +3,21 @@
const common = require('../common.js');
const { randomBytes } = require('crypto');
+// Add together with imports
+const assert = require('assert');
+
+let _cryptoResult;
+
const bench = common.createBenchmark(main, {
- size: [64, 1024, 8192, 512 * 1024],
- n: [1e3],
+ size: [64, 1024, 8 * 1024, 16 * 1024],
+ n: [1e5],
});
function main({ n, size }) {
bench.start();
for (let i = 0; i < n; ++i)
- randomBytes(size);
+ _cryptoResult = randomBytes(size);
bench.end(n);
+ // Avoid V8 deadcode (elimination)
+ assert.ok(_cryptoResult);
}
diff --git a/benchmark/domain/domain-fn-args.js b/benchmark/domain/domain-fn-args.js
index d55658ccdbaabd..8a8a75c6d3150a 100644
--- a/benchmark/domain/domain-fn-args.js
+++ b/benchmark/domain/domain-fn-args.js
@@ -4,7 +4,7 @@ const domain = require('domain');
const bench = common.createBenchmark(main, {
args: [0, 1, 2, 3],
- n: [10],
+ n: [1e4],
});
const bdomain = domain.create();
diff --git a/benchmark/error/hidestackframes-noerr.js b/benchmark/error/hidestackframes-noerr.js
new file mode 100644
index 00000000000000..9e662f6a620f13
--- /dev/null
+++ b/benchmark/error/hidestackframes-noerr.js
@@ -0,0 +1,62 @@
+'use strict';
+
+const common = require('../common.js');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ type: [
+ 'hide-stackframes',
+ 'direct-call',
+ ],
+ n: [1e7],
+}, {
+ flags: ['--expose-internals'],
+});
+
+function main({ n, type }) {
+ const {
+ hideStackFrames,
+ codes: {
+ ERR_INVALID_ARG_TYPE,
+ },
+ } = require('internal/errors');
+
+ const testfn = (value) => {
+ if (typeof value !== 'number') {
+ throw new ERR_INVALID_ARG_TYPE('Benchmark', 'number', value);
+ }
+ };
+
+ const hideStackFramesTestfn = hideStackFrames((value) => {
+ if (typeof value !== 'number') {
+ throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
+ }
+ });
+
+ const fn = type === 'hide-stackframe' ? hideStackFramesTestfn : testfn;
+
+ const value = 42;
+
+ const length = 1024;
+ const array = [];
+ const errCase = false;
+
+ for (let i = 0; i < length; ++i) {
+ array.push(fn(value));
+ }
+
+ bench.start();
+
+ for (let i = 0; i < n; i++) {
+ const index = i % length;
+ array[index] = fn(value);
+ }
+
+ bench.end(n);
+
+ // Verify the entries to prevent dead code elimination from making
+ // the benchmark invalid.
+ for (let i = 0; i < length; ++i) {
+ assert.strictEqual(typeof array[i], errCase ? 'object' : 'undefined');
+ }
+}
diff --git a/benchmark/error/hidestackframes-throw.js b/benchmark/error/hidestackframes-throw.js
new file mode 100644
index 00000000000000..c7147e39ba57a3
--- /dev/null
+++ b/benchmark/error/hidestackframes-throw.js
@@ -0,0 +1,87 @@
+'use strict';
+
+const common = require('../common.js');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ type: [
+ 'hide-stackframes',
+ 'direct-call',
+ ],
+ double: ['true', 'false'],
+ n: [1e5],
+}, {
+ flags: ['--expose-internals'],
+});
+
+function main({ n, type, double }) {
+ const {
+ hideStackFrames,
+ codes: {
+ ERR_INVALID_ARG_TYPE,
+ },
+ } = require('internal/errors');
+
+ const value = 'err';
+
+ const testfn = (value) => {
+ if (typeof value !== 'number') {
+ throw new ERR_INVALID_ARG_TYPE('Benchmark', 'number', value);
+ }
+ };
+
+ const hideStackFramesTestfn = hideStackFrames((value) => {
+ if (typeof value !== 'number') {
+ throw new ERR_INVALID_ARG_TYPE.HideStackFrameError('Benchmark', 'number', value);
+ }
+ });
+
+ function doubleTestfn(value) {
+ testfn(value);
+ }
+
+ const doubleHideStackFramesTestfn = hideStackFrames((value) => {
+ hideStackFramesTestfn.withoutStackTrace(value);
+ });
+
+ const fn = type === 'hide-stackframe' ?
+ double === 'true' ?
+ doubleHideStackFramesTestfn :
+ hideStackFramesTestfn :
+ double === 'true' ?
+ doubleTestfn :
+ testfn;
+
+ const length = 1024;
+ const array = [];
+ let errCase = false;
+
+ // Warm up.
+ for (let i = 0; i < length; ++i) {
+ try {
+ fn(value);
+ } catch (e) {
+ errCase = true;
+ array.push(e);
+ }
+ }
+
+ bench.start();
+
+ for (let i = 0; i < n; i++) {
+ const index = i % length;
+ try {
+ fn(value);
+ } catch (e) {
+ array[index] = e;
+ }
+ }
+
+ bench.end(n);
+
+ // Verify the entries to prevent dead code elimination from making
+ // the benchmark invalid.
+ for (let i = 0; i < length; ++i) {
+ assert.strictEqual(typeof array[i], errCase ? 'object' : 'undefined');
+ }
+}
diff --git a/benchmark/error/hidestackframes.js b/benchmark/error/hidestackframes.js
deleted file mode 100644
index b28be725a30969..00000000000000
--- a/benchmark/error/hidestackframes.js
+++ /dev/null
@@ -1,45 +0,0 @@
-'use strict';
-
-const common = require('../common.js');
-
-const bench = common.createBenchmark(main, {
- type: ['hide-stackframes-throw', 'direct-call-throw',
- 'hide-stackframes-noerr', 'direct-call-noerr'],
- n: [10e4],
-}, {
- flags: ['--expose-internals'],
-});
-
-function main({ n, type }) {
- const {
- hideStackFrames,
- codes: {
- ERR_INVALID_ARG_TYPE,
- },
- } = require('internal/errors');
-
- const testfn = (value) => {
- if (typeof value !== 'number') {
- throw new ERR_INVALID_ARG_TYPE('Benchmark', 'number', value);
- }
- };
-
- let fn = testfn;
- if (type.startsWith('hide-stackframe'))
- fn = hideStackFrames(testfn);
- let value = 42;
- if (type.endsWith('-throw'))
- value = 'err';
-
- bench.start();
-
- for (let i = 0; i < n; i++) {
- try {
- fn(value);
- } catch {
- // No-op
- }
- }
-
- bench.end(n);
-}
diff --git a/benchmark/error/system-error-instantiation.js b/benchmark/error/system-error-instantiation.js
new file mode 100644
index 00000000000000..0ecdc36a357086
--- /dev/null
+++ b/benchmark/error/system-error-instantiation.js
@@ -0,0 +1,64 @@
+'use strict';
+
+const common = require('../common');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ n: [1e6],
+ code: [
+ 'built-in',
+ 'ERR_FS_CP_DIR_TO_NON_DIR',
+ ],
+ stackTraceLimit: [0, 10],
+}, {
+ flags: ['--expose-internals'],
+});
+
+function getErrorFactory(code) {
+ const {
+ ERR_FS_CP_DIR_TO_NON_DIR,
+ } = require('internal/errors').codes;
+
+ switch (code) {
+ case 'built-in':
+ return (n) => new Error();
+ case 'ERR_FS_CP_DIR_TO_NON_DIR':
+ return (n) => new ERR_FS_CP_DIR_TO_NON_DIR({
+ message: 'cannot overwrite directory',
+ path: 'dest',
+ syscall: 'cp',
+ errno: 21,
+ code: 'EISDIR',
+ });
+ default:
+ throw new Error(`${code} not supported`);
+ }
+}
+
+function main({ n, code, stackTraceLimit }) {
+ const getError = getErrorFactory(code);
+
+ Error.stackTraceLimit = stackTraceLimit;
+
+ // Warm up.
+ const length = 1024;
+ const array = [];
+ for (let i = 0; i < length; ++i) {
+ array.push(getError(i));
+ }
+
+ bench.start();
+
+ for (let i = 0; i < n; ++i) {
+ const index = i % length;
+ array[index] = getError(index);
+ }
+
+ bench.end(n);
+
+ // Verify the entries to prevent dead code elimination from making
+ // the benchmark invalid.
+ for (let i = 0; i < length; ++i) {
+ assert.strictEqual(typeof array[i], 'object');
+ }
+}
diff --git a/benchmark/fs/bench-mkdtempSync.js b/benchmark/fs/bench-mkdtempSync.js
new file mode 100644
index 00000000000000..afb342366bbfdf
--- /dev/null
+++ b/benchmark/fs/bench-mkdtempSync.js
@@ -0,0 +1,43 @@
+'use strict';
+
+const common = require('../common');
+const fs = require('fs');
+const assert = require('assert');
+const tmpdir = require('../../test/common/tmpdir');
+
+const bench = common.createBenchmark(main, {
+ type: ['valid-string', 'valid-buffer', 'invalid'],
+ n: [1e4],
+});
+
+function main({ n, type }) {
+ tmpdir.refresh();
+ const options = { encoding: 'utf8' };
+ let prefix;
+ let out = true;
+
+ switch (type) {
+ case 'valid-string':
+ prefix = tmpdir.resolve(`${Date.now()}`);
+ break;
+ case 'valid-buffer':
+ prefix = Buffer.from(tmpdir.resolve(`${Date.now()}`));
+ break;
+ case 'invalid':
+ prefix = tmpdir.resolve('non-existent', 'foo', 'bar');
+ break;
+ default:
+ new Error('Invalid type');
+ }
+
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ try {
+ out = fs.mkdtempSync(prefix, options);
+ } catch {
+ // do nothing
+ }
+ }
+ bench.end(n);
+ assert.ok(out);
+}
diff --git a/benchmark/fs/bench-readvSync.js b/benchmark/fs/bench-readvSync.js
new file mode 100644
index 00000000000000..c163429b5f6212
--- /dev/null
+++ b/benchmark/fs/bench-readvSync.js
@@ -0,0 +1,58 @@
+'use strict';
+
+const common = require('../common');
+const fs = require('fs');
+const assert = require('assert');
+const tmpdir = require('../../test/common/tmpdir');
+tmpdir.refresh();
+
+const exptectedBuff = Buffer.from('Benchmark Data');
+const expectedLength = exptectedBuff.length;
+
+const bufferArr = [Buffer.alloc(expectedLength)];
+
+const filename = tmpdir.resolve('readv_sync.txt');
+fs.writeFileSync(filename, exptectedBuff);
+
+const bench = common.createBenchmark(main, {
+ type: ['valid', 'invalid'],
+ n: [1e5],
+});
+
+function main({ n, type }) {
+ let fd;
+ let result;
+
+ switch (type) {
+ case 'valid':
+ fd = fs.openSync(filename, 'r');
+
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ result = fs.readvSync(fd, bufferArr, 0);
+ }
+
+ bench.end(n);
+ assert.strictEqual(result, expectedLength);
+ fs.closeSync(fd);
+ break;
+ case 'invalid': {
+ fd = 1 << 30;
+ let hasError = false;
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ try {
+ result = fs.readvSync(fd, bufferArr, 0);
+ } catch {
+ hasError = true;
+ }
+ }
+
+ bench.end(n);
+ assert(hasError);
+ break;
+ }
+ default:
+ throw new Error('Invalid type');
+ }
+}
diff --git a/benchmark/misc/startup-cli-version.js b/benchmark/misc/startup-cli-version.js
index 52ab6bc9f582f3..4dbeb81fc70740 100644
--- a/benchmark/misc/startup-cli-version.js
+++ b/benchmark/misc/startup-cli-version.js
@@ -1,6 +1,7 @@
'use strict';
const common = require('../common.js');
const { spawnSync } = require('child_process');
+const { existsSync } = require('fs');
const path = require('path');
// This benchmarks the startup of various CLI tools that are already
@@ -11,6 +12,7 @@ const path = require('path');
const bench = common.createBenchmark(main, {
cli: [
'tools/node_modules/eslint/bin/eslint.js',
+ 'deps/npm/bin/npx-cli.js',
'deps/npm/bin/npm-cli.js',
'deps/corepack/dist/corepack.js',
],
@@ -45,6 +47,10 @@ function spawnProcess(cli, bench, state) {
function main({ count, cli }) {
cli = path.resolve(__dirname, '../../', cli);
+ if (!existsSync(cli)) {
+ return;
+ }
+
const warmup = 3;
const state = { count, finished: -warmup };
spawnProcess(cli, bench, state);
diff --git a/benchmark/misc/startup.js b/benchmark/misc/startup-core.js
similarity index 100%
rename from benchmark/misc/startup.js
rename to benchmark/misc/startup-core.js
diff --git a/benchmark/perf_hooks/histogram-record.js b/benchmark/perf_hooks/histogram-record.js
new file mode 100644
index 00000000000000..c3f7e89e171b1b
--- /dev/null
+++ b/benchmark/perf_hooks/histogram-record.js
@@ -0,0 +1,26 @@
+'use strict';
+
+const assert = require('assert');
+const common = require('../common.js');
+
+const { createHistogram } = require('perf_hooks');
+
+const bench = common.createBenchmark(main, {
+ n: [1e5],
+});
+
+function main({ n }) {
+ const histogram = createHistogram();
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ histogram.record(i + 1);
+ /* eslint-disable no-unused-expressions */
+ histogram.max;
+ histogram.mean;
+ /* eslint-enable no-unused-expressions */
+ }
+ bench.end(n);
+
+ // Avoid V8 deadcode (elimination)
+ assert.ok(histogram);
+}
diff --git a/benchmark/perf_hooks/performance-observer.js b/benchmark/perf_hooks/performance-observer.js
index 42a94932860c38..d943c4547e0431 100644
--- a/benchmark/perf_hooks/performance-observer.js
+++ b/benchmark/perf_hooks/performance-observer.js
@@ -13,7 +13,7 @@ function randomFn() {
}
const bench = common.createBenchmark(main, {
- n: [1e5],
+ n: [1e6],
pending: [1, 10],
}, {
options: ['--expose-internals'],
diff --git a/benchmark/perf_hooks/resourcetiming.js b/benchmark/perf_hooks/resourcetiming.js
index 51c4778d20065f..69ee06c92cbd9f 100644
--- a/benchmark/perf_hooks/resourcetiming.js
+++ b/benchmark/perf_hooks/resourcetiming.js
@@ -50,7 +50,7 @@ function createTimingInfo({
}
const bench = common.createBenchmark(main, {
- n: [1e5],
+ n: [1e6],
observe: ['resource'],
});
diff --git a/benchmark/perf_hooks/time-origin.js b/benchmark/perf_hooks/time-origin.js
new file mode 100644
index 00000000000000..90a24f45341ed4
--- /dev/null
+++ b/benchmark/perf_hooks/time-origin.js
@@ -0,0 +1,45 @@
+'use strict';
+
+const assert = require('assert');
+const common = require('../common.js');
+
+const bench = common.createBenchmark(main, {
+ n: [1e6],
+ method: ['timeOrigin', 'toJSON'],
+});
+
+function main({ method, n }) {
+ switch (method) {
+ case 'timeOrigin':
+ benchTimeOrigin(n);
+ break;
+ case 'toJSON':
+ benchToJSON(n);
+ break;
+ default:
+ throw new Error(`Unsupported method ${method}`);
+ }
+}
+
+function benchTimeOrigin(n) {
+ const arr = [];
+ for (let i = 0; i < n; ++i) {
+ arr.push(performance.timeOrigin);
+ }
+
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ arr[i] = performance.timeOrigin;
+ }
+ bench.end(n);
+
+ assert.strictEqual(arr.length, n);
+}
+
+function benchToJSON(n) {
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ performance.toJSON();
+ }
+ bench.end(n);
+}
diff --git a/benchmark/perf_hooks/timerfied.js b/benchmark/perf_hooks/timerfied.js
index 50be0a47fc1b5a..f1cc62637187dd 100644
--- a/benchmark/perf_hooks/timerfied.js
+++ b/benchmark/perf_hooks/timerfied.js
@@ -13,7 +13,7 @@ function randomFn() {
}
const bench = common.createBenchmark(main, {
- n: [1e5],
+ n: [1e6],
observe: ['function'],
});
diff --git a/benchmark/perf_hooks/usertiming.js b/benchmark/perf_hooks/usertiming.js
index 24a53a116785df..92017861d58c4a 100644
--- a/benchmark/perf_hooks/usertiming.js
+++ b/benchmark/perf_hooks/usertiming.js
@@ -8,7 +8,7 @@ const {
} = require('perf_hooks');
const bench = common.createBenchmark(main, {
- n: [1e5],
+ n: [1e6],
observe: ['all', 'measure'],
});
diff --git a/benchmark/url/url-searchparams-append.js b/benchmark/url/url-searchparams-append.js
new file mode 100644
index 00000000000000..cd8099b517c6f7
--- /dev/null
+++ b/benchmark/url/url-searchparams-append.js
@@ -0,0 +1,19 @@
+'use strict';
+const common = require('../common.js');
+
+const bench = common.createBenchmark(main, {
+ type: ['URL', 'URLSearchParams'],
+ n: [1e3, 1e6],
+});
+
+function main({ type, n }) {
+ const params = type === 'URL' ?
+ new URL('https://nodejs.org').searchParams :
+ new URLSearchParams();
+
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ params.append('test', i);
+ }
+ bench.end(n);
+}
diff --git a/benchmark/url/url-searchparams-update.js b/benchmark/url/url-searchparams-update.js
new file mode 100644
index 00000000000000..082d476a5d2250
--- /dev/null
+++ b/benchmark/url/url-searchparams-update.js
@@ -0,0 +1,29 @@
+'use strict';
+const common = require('../common.js');
+const assert = require('assert');
+
+const bench = common.createBenchmark(main, {
+ searchParams: ['true', 'false'],
+ property: ['pathname', 'search', 'hash'],
+ n: [1e6],
+});
+
+function getMethod(url, property) {
+ if (property === 'pathname') return (x) => url.pathname = `/${x}`;
+ if (property === 'search') return (x) => url.search = `?${x}`;
+ if (property === 'hash') return (x) => url.hash = `#${x}`;
+ throw new Error(`Unsupported property "${property}"`);
+}
+
+function main({ searchParams, property, n }) {
+ const url = new URL('https://nodejs.org');
+ if (searchParams === 'true') assert(url.searchParams);
+
+ const method = getMethod(url, property);
+
+ bench.start();
+ for (let i = 0; i < n; i++) {
+ method(i);
+ }
+ bench.end(n);
+}
diff --git a/benchmark/url/usvstring.js b/benchmark/url/usvstring.js
deleted file mode 100644
index 93a50846fb999f..00000000000000
--- a/benchmark/url/usvstring.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-const common = require('../common.js');
-
-const inputs = {
- valid: 'adsfadsfadsf',
- validsurr: '\uda23\ude23\uda1f\udfaa\ud800\udfff\uda23\ude23\uda1f\udfaa' +
- '\ud800\udfff',
- someinvalid: 'asasfdfasd\uda23',
- allinvalid: '\udc45\uda23 \udf00\udc00 \udfaa\uda12 \udc00\udfaa',
- nonstring: { toString() { return 'asdf'; } },
-};
-const bench = common.createBenchmark(main, {
- input: Object.keys(inputs),
- n: [5e7],
-}, {
- flags: ['--expose-internals'],
-});
-
-function main({ input, n }) {
- const { toUSVString } = require('internal/url');
- const str = inputs[input];
-
- bench.start();
- for (let i = 0; i < n; i++)
- toUSVString(str);
- bench.end(n);
-}
diff --git a/benchmark/util/format.js b/benchmark/util/format.js
index 4078fe5e3da7cd..dfbb6c3372a23b 100644
--- a/benchmark/util/format.js
+++ b/benchmark/util/format.js
@@ -18,7 +18,7 @@ const inputs = {
};
const bench = common.createBenchmark(main, {
- n: [1e5],
+ n: [1e6],
type: Object.keys(inputs),
});
diff --git a/benchmark/util/inspect-array.js b/benchmark/util/inspect-array.js
index 7b2394d80e9cfe..ed40f5c4324ac3 100644
--- a/benchmark/util/inspect-array.js
+++ b/benchmark/util/inspect-array.js
@@ -4,7 +4,7 @@ const common = require('../common');
const util = require('util');
const bench = common.createBenchmark(main, {
- n: [5e2],
+ n: [5e3],
len: [1e2, 1e5],
type: [
'denseArray',
diff --git a/benchmark/util/inspect.js b/benchmark/util/inspect.js
index ace4e588ae5135..8e453b9e226ee8 100644
--- a/benchmark/util/inspect.js
+++ b/benchmark/util/inspect.js
@@ -9,7 +9,7 @@ const opts = {
none: undefined,
};
const bench = common.createBenchmark(main, {
- n: [2e4],
+ n: [8e4],
method: [
'Object',
'Object_empty',
diff --git a/benchmark/util/normalize-encoding.js b/benchmark/util/normalize-encoding.js
index cd65caca4a4056..204ea67c54ce1a 100644
--- a/benchmark/util/normalize-encoding.js
+++ b/benchmark/util/normalize-encoding.js
@@ -21,7 +21,7 @@ const inputs = [
const bench = common.createBenchmark(main, {
input: inputs.concat(Object.keys(groupedInputs)),
- n: [1e5],
+ n: [1e6],
}, {
flags: '--expose-internals',
});
diff --git a/benchmark/util/text-decoder.js b/benchmark/util/text-decoder.js
index f85dd4db008ed8..dd4f02016df077 100644
--- a/benchmark/util/text-decoder.js
+++ b/benchmark/util/text-decoder.js
@@ -6,8 +6,8 @@ const bench = common.createBenchmark(main, {
encoding: ['utf-8', 'latin1', 'iso-8859-3'],
ignoreBOM: [0, 1],
fatal: [0, 1],
- len: [256, 1024 * 16, 1024 * 512],
- n: [1e2],
+ len: [256, 1024 * 16, 1024 * 128],
+ n: [1e3],
type: ['SharedArrayBuffer', 'ArrayBuffer', 'Buffer'],
});
diff --git a/benchmark/util/to-usv-string.js b/benchmark/util/to-usv-string.js
deleted file mode 100644
index 22d23d3198d124..00000000000000
--- a/benchmark/util/to-usv-string.js
+++ /dev/null
@@ -1,21 +0,0 @@
-'use strict';
-
-const common = require('../common');
-
-const BASE = 'string\ud801';
-
-const bench = common.createBenchmark(main, {
- n: [1e5],
- size: [10, 100, 500],
-});
-
-function main({ n, size }) {
- const { toUSVString } = require('util');
- const str = BASE.repeat(size);
-
- bench.start();
- for (let i = 0; i < n; i++) {
- toUSVString(str);
- }
- bench.end(n);
-}
diff --git a/benchmark/util/type-check.js b/benchmark/util/type-check.js
index 2bb956f4ed87ee..269c2a4e9c1374 100644
--- a/benchmark/util/type-check.js
+++ b/benchmark/util/type-check.js
@@ -29,7 +29,7 @@ const bench = common.createBenchmark(main, {
type: Object.keys(args),
version: ['native', 'js'],
argument: ['true', 'false-primitive', 'false-object'],
- n: [1e5],
+ n: [1e6],
}, {
flags: ['--expose-internals', '--no-warnings'],
});
diff --git a/benchmark/websocket/simple.js b/benchmark/websocket/simple.js
new file mode 100644
index 00000000000000..1147602a7b1ea7
--- /dev/null
+++ b/benchmark/websocket/simple.js
@@ -0,0 +1,100 @@
+'use strict';
+
+const common = require('../common.js');
+const crypto = require('crypto');
+const http = require('http');
+const { WebSocket } = require('../../deps/undici/undici');
+
+const GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
+
+const configs = {
+ size: [64, 16 * 1024, 128 * 1024, 1024 * 1024],
+ useBinary: ['true', 'false'],
+ roundtrips: [5000, 1000, 100],
+};
+
+const bench = common.createBenchmark(main, configs);
+
+function createFrame(data, opcode) {
+ let infoLength = 2;
+ let payloadLength = data.length;
+
+ if (payloadLength >= 65536) {
+ infoLength += 8;
+ payloadLength = 127;
+ } else if (payloadLength > 125) {
+ infoLength += 2;
+ payloadLength = 126;
+ }
+
+ const info = Buffer.alloc(infoLength);
+
+ info[0] = opcode | 0x80;
+ info[1] = payloadLength;
+
+ if (payloadLength === 126) {
+ info.writeUInt16BE(data.length, 2);
+ } else if (payloadLength === 127) {
+ info[2] = info[3] = 0;
+ info.writeUIntBE(data.length, 4, 6);
+ }
+
+ return Buffer.concat([info, data]);
+}
+
+function main(conf) {
+ const frame = createFrame(Buffer.alloc(conf.size).fill('.'), conf.useBinary === 'true' ? 2 : 1);
+ const server = http.createServer();
+ server.on('upgrade', (req, socket) => {
+ const key = crypto
+ .createHash('sha1')
+ .update(req.headers['sec-websocket-key'] + GUID)
+ .digest('base64');
+
+ let bytesReceived = 0;
+ let roundtrip = 0;
+
+ socket.on('data', function onData(chunk) {
+ bytesReceived += chunk.length;
+
+ if (bytesReceived === frame.length + 4) { // +4 for the mask.
+ // Message completely received.
+ bytesReceived = 0;
+
+ if (++roundtrip === conf.roundtrips) {
+ socket.removeListener('data', onData);
+ socket.resume();
+ socket.end();
+ server.close();
+
+ bench.end(conf.roundtrips);
+ } else {
+ socket.write(frame);
+ }
+ }
+ });
+
+ socket.write(
+ [
+ 'HTTP/1.1 101 Switching Protocols',
+ 'Upgrade: websocket',
+ 'Connection: Upgrade',
+ `Sec-WebSocket-Accept: ${key}`,
+ '\r\n',
+ ].join('\r\n'),
+ );
+
+ socket.write(frame);
+ });
+
+ server.listen(0, () => {
+ const ws = new WebSocket(`ws://localhost:${server.address().port}`);
+ ws.addEventListener('open', () => {
+ bench.start();
+ });
+
+ ws.addEventListener('message', (event) => {
+ ws.send(event.data);
+ });
+ });
+}
diff --git a/common.gypi b/common.gypi
index db09a8a33df066..efcd8da848150d 100644
--- a/common.gypi
+++ b/common.gypi
@@ -36,7 +36,7 @@
# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
- 'v8_embedder_string': '-node.17',
+ 'v8_embedder_string': '-node.19',
##### V8 defaults for Node.js #####
diff --git a/configure.py b/configure.py
index 84b016cd853080..00c8513d6820ec 100755
--- a/configure.py
+++ b/configure.py
@@ -122,6 +122,12 @@
default=None,
help='force build to be considered as NOT cross compiled')
+parser.add_argument('--use-prefix-to-find-headers',
+ action='store_true',
+ dest='use_prefix_to_find_headers',
+ default=None,
+ help='use the prefix to look for pre-installed headers')
+
parser.add_argument('--dest-os',
action='store',
dest='dest_os',
@@ -1249,6 +1255,7 @@ def configure_node(o):
o['variables']['debug_node'] = b(options.debug_node)
o['default_configuration'] = 'Debug' if options.debug else 'Release'
o['variables']['error_on_warn'] = b(options.error_on_warn)
+ o['variables']['use_prefix_to_find_headers'] = b(options.use_prefix_to_find_headers)
host_arch = host_arch_win() if os.name == 'nt' else host_arch_cc()
target_arch = options.dest_cpu or host_arch
diff --git a/deps/acorn/acorn-walk/CHANGELOG.md b/deps/acorn/acorn-walk/CHANGELOG.md
index 30ec5a5eec9911..0b4eea8a95d3ed 100644
--- a/deps/acorn/acorn-walk/CHANGELOG.md
+++ b/deps/acorn/acorn-walk/CHANGELOG.md
@@ -1,3 +1,17 @@
+## 8.3.1 (2023-12-06)
+
+### Bug fixes
+
+Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
+
+Visitor functions are now called in such a way that their `this` refers to the object they are part of.
+
+## 8.3.0 (2023-10-26)
+
+### New features
+
+Use a set of new, much more precise, TypeScript types.
+
## 8.2.0 (2021-09-06)
### New features
diff --git a/deps/acorn/acorn-walk/README.md b/deps/acorn/acorn-walk/README.md
index e192baced005ac..3c18a2c76a938e 100644
--- a/deps/acorn/acorn-walk/README.md
+++ b/deps/acorn/acorn-walk/README.md
@@ -10,9 +10,7 @@ Acorn is open source software released under an
You are welcome to
[report bugs](https://github.com/acornjs/acorn/issues) or create pull
-requests on [github](https://github.com/acornjs/acorn). For questions
-and discussion, please use the
-[Tern discussion forum](https://discuss.ternjs.net).
+requests on [github](https://github.com/acornjs/acorn).
## Installation
@@ -68,7 +66,7 @@ const acorn = require("acorn")
const walk = require("acorn-walk")
walk.ancestor(acorn.parse("foo('hi')"), {
- Literal(_, ancestors) {
+ Literal(_node, _state, ancestors) {
console.log("This literal's ancestors are:", ancestors.map(n => n.type))
}
})
diff --git a/deps/acorn/acorn-walk/dist/walk.d.mts b/deps/acorn/acorn-walk/dist/walk.d.mts
new file mode 100644
index 00000000000000..e07a6afaf8e336
--- /dev/null
+++ b/deps/acorn/acorn-walk/dist/walk.d.mts
@@ -0,0 +1,177 @@
+import * as acorn from "acorn"
+
+export type FullWalkerCallback = (
+ node: acorn.Node,
+ state: TState,
+ type: string
+) => void
+
+export type FullAncestorWalkerCallback = (
+ node: acorn.Node,
+ state: TState,
+ ancestors: acorn.Node[],
+ type: string
+) => void
+
+type AggregateType = {
+ Expression: acorn.Expression,
+ Statement: acorn.Statement,
+ Function: acorn.Function,
+ Class: acorn.Class,
+ Pattern: acorn.Pattern,
+ ForInit: acorn.VariableDeclaration | acorn.Expression
+}
+
+export type SimpleVisitors = {
+ [type in acorn.AnyNode["type"]]?: (node: Extract, state: TState) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState) => void
+}
+
+export type AncestorVisitors = {
+ [type in acorn.AnyNode["type"]]?: ( node: Extract, state: TState, ancestors: acorn.Node[]
+) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.Node[]) => void
+}
+
+export type WalkerCallback = (node: acorn.Node, state: TState) => void
+
+export type RecursiveVisitors = {
+ [type in acorn.AnyNode["type"]]?: ( node: Extract, state: TState, callback: WalkerCallback) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, callback: WalkerCallback) => void
+}
+
+export type FindPredicate = (type: string, node: acorn.Node) => boolean
+
+export interface Found {
+ node: acorn.Node,
+ state: TState
+}
+
+/**
+ * does a 'simple' walk over a tree
+ * @param node the AST node to walk
+ * @param visitors an object with properties whose names correspond to node types in the {@link https://github.com/estree/estree | ESTree spec}. The properties should contain functions that will be called with the node object and, if applicable the state at that point.
+ * @param base a walker algorithm
+ * @param state a start state. The default walker will simply visit all statements and expressions and not produce a meaningful state. (An example of a use of state is to track scope at each point in the tree.)
+ */
+export function simple(
+ node: acorn.Node,
+ visitors: SimpleVisitors,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
+ * @param node
+ * @param visitors
+ * @param base
+ * @param state
+ */
+export function ancestor(
+ node: acorn.Node,
+ visitors: AncestorVisitors,
+ base?: RecursiveVisitors,
+ state?: TState
+ ): void
+
+/**
+ * does a 'recursive' walk, where the walker functions are responsible for continuing the walk on the child nodes of their target node.
+ * @param node
+ * @param state the start state
+ * @param functions contain an object that maps node types to walker functions
+ * @param base provides the fallback walker functions for node types that aren't handled in the {@link functions} object. If not given, the default walkers will be used.
+ */
+export function recursive(
+ node: acorn.Node,
+ state: TState,
+ functions: RecursiveVisitors,
+ base?: RecursiveVisitors
+): void
+
+/**
+ * does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node
+ * @param node
+ * @param callback
+ * @param base
+ * @param state
+ */
+export function full(
+ node: acorn.Node,
+ callback: FullWalkerCallback,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
+ * @param node
+ * @param callback
+ * @param base
+ * @param state
+ */
+export function fullAncestor(
+ node: acorn.Node,
+ callback: FullAncestorWalkerCallback,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.
+ * @param functions
+ * @param base
+ */
+export function make(
+ functions: RecursiveVisitors,
+ base?: RecursiveVisitors
+): RecursiveVisitors
+
+/**
+ * tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.
+ * @param node
+ * @param start
+ * @param end
+ * @param type
+ * @param base
+ * @param state
+ */
+export function findNodeAt(
+ node: acorn.Node,
+ start: number | undefined,
+ end?: number | undefined,
+ type?: FindPredicate | string,
+ base?: RecursiveVisitors,
+ state?: TState
+): Found | undefined
+
+/**
+ * like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.
+ * @param node
+ * @param start
+ * @param type
+ * @param base
+ * @param state
+ */
+export function findNodeAround(
+ node: acorn.Node,
+ start: number | undefined,
+ type?: FindPredicate | string,
+ base?: RecursiveVisitors,
+ state?: TState
+): Found | undefined
+
+/**
+ * Find the outermost matching node after a given position.
+ */
+export const findNodeAfter: typeof findNodeAround
+
+/**
+ * Find the outermost matching node before a given position.
+ */
+export const findNodeBefore: typeof findNodeAround
+
+export const base: RecursiveVisitors
diff --git a/deps/acorn/acorn-walk/dist/walk.d.ts b/deps/acorn/acorn-walk/dist/walk.d.ts
index 2d81f01c166875..e07a6afaf8e336 100644
--- a/deps/acorn/acorn-walk/dist/walk.d.ts
+++ b/deps/acorn/acorn-walk/dist/walk.d.ts
@@ -1,114 +1,177 @@
-import {Node} from 'acorn';
-
-declare module "acorn-walk" {
- type FullWalkerCallback = (
- node: Node,
- state: TState,
- type: string
- ) => void;
-
- type FullAncestorWalkerCallback = (
- node: Node,
- state: TState | Node[],
- ancestors: Node[],
- type: string
- ) => void;
- type WalkerCallback = (node: Node, state: TState) => void;
-
- type SimpleWalkerFn = (
- node: Node,
- state: TState
- ) => void;
-
- type AncestorWalkerFn = (
- node: Node,
- state: TState| Node[],
- ancestors: Node[]
- ) => void;
-
- type RecursiveWalkerFn = (
- node: Node,
- state: TState,
- callback: WalkerCallback
- ) => void;
-
- type SimpleVisitors = {
- [type: string]: SimpleWalkerFn
- };
-
- type AncestorVisitors = {
- [type: string]: AncestorWalkerFn
- };
-
- type RecursiveVisitors = {
- [type: string]: RecursiveWalkerFn
- };
-
- type FindPredicate = (type: string, node: Node) => boolean;
-
- interface Found {
- node: Node,
- state: TState
- }
-
- export function simple(
- node: Node,
- visitors: SimpleVisitors,
- base?: RecursiveVisitors,
- state?: TState
- ): void;
+import * as acorn from "acorn"
+
+export type FullWalkerCallback = (
+ node: acorn.Node,
+ state: TState,
+ type: string
+) => void
+
+export type FullAncestorWalkerCallback = (
+ node: acorn.Node,
+ state: TState,
+ ancestors: acorn.Node[],
+ type: string
+) => void
+
+type AggregateType = {
+ Expression: acorn.Expression,
+ Statement: acorn.Statement,
+ Function: acorn.Function,
+ Class: acorn.Class,
+ Pattern: acorn.Pattern,
+ ForInit: acorn.VariableDeclaration | acorn.Expression
+}
- export function ancestor(
- node: Node,
- visitors: AncestorVisitors,
- base?: RecursiveVisitors,
- state?: TState
- ): void;
-
- export function recursive(
- node: Node,
- state: TState,
- functions: RecursiveVisitors,
- base?: RecursiveVisitors
- ): void;
-
- export function full(
- node: Node,
- callback: FullWalkerCallback,
- base?: RecursiveVisitors,
- state?: TState
- ): void;
+export type SimpleVisitors = {
+ [type in acorn.AnyNode["type"]]?: (node: Extract, state: TState) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState) => void
+}
- export function fullAncestor(
- node: Node,
- callback: FullAncestorWalkerCallback,
- base?: RecursiveVisitors,
- state?: TState
- ): void;
-
- export function make(
- functions: RecursiveVisitors,
- base?: RecursiveVisitors
- ): RecursiveVisitors;
-
- export function findNodeAt(
- node: Node,
- start: number | undefined,
- end?: number | undefined,
- type?: FindPredicate | string,
- base?: RecursiveVisitors,
- state?: TState
- ): Found | undefined;
+export type AncestorVisitors = {
+ [type in acorn.AnyNode["type"]]?: ( node: Extract, state: TState, ancestors: acorn.Node[]
+) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, ancestors: acorn.Node[]) => void
+}
- export function findNodeAround(
- node: Node,
- start: number | undefined,
- type?: FindPredicate | string,
- base?: RecursiveVisitors,
- state?: TState
- ): Found | undefined;
+export type WalkerCallback = (node: acorn.Node, state: TState) => void
- export const findNodeAfter: typeof findNodeAround;
+export type RecursiveVisitors = {
+ [type in acorn.AnyNode["type"]]?: ( node: Extract, state: TState, callback: WalkerCallback) => void
+} & {
+ [type in keyof AggregateType]?: (node: AggregateType[type], state: TState, callback: WalkerCallback) => void
+}
- export const base: RecursiveVisitors;
+export type FindPredicate = (type: string, node: acorn.Node) => boolean
+
+export interface Found {
+ node: acorn.Node,
+ state: TState
}
+
+/**
+ * does a 'simple' walk over a tree
+ * @param node the AST node to walk
+ * @param visitors an object with properties whose names correspond to node types in the {@link https://github.com/estree/estree | ESTree spec}. The properties should contain functions that will be called with the node object and, if applicable the state at that point.
+ * @param base a walker algorithm
+ * @param state a start state. The default walker will simply visit all statements and expressions and not produce a meaningful state. (An example of a use of state is to track scope at each point in the tree.)
+ */
+export function simple(
+ node: acorn.Node,
+ visitors: SimpleVisitors,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * does a 'simple' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
+ * @param node
+ * @param visitors
+ * @param base
+ * @param state
+ */
+export function ancestor(
+ node: acorn.Node,
+ visitors: AncestorVisitors,
+ base?: RecursiveVisitors,
+ state?: TState
+ ): void
+
+/**
+ * does a 'recursive' walk, where the walker functions are responsible for continuing the walk on the child nodes of their target node.
+ * @param node
+ * @param state the start state
+ * @param functions contain an object that maps node types to walker functions
+ * @param base provides the fallback walker functions for node types that aren't handled in the {@link functions} object. If not given, the default walkers will be used.
+ */
+export function recursive(
+ node: acorn.Node,
+ state: TState,
+ functions: RecursiveVisitors,
+ base?: RecursiveVisitors
+): void
+
+/**
+ * does a 'full' walk over a tree, calling the {@link callback} with the arguments (node, state, type) for each node
+ * @param node
+ * @param callback
+ * @param base
+ * @param state
+ */
+export function full(
+ node: acorn.Node,
+ callback: FullWalkerCallback,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * does a 'full' walk over a tree, building up an array of ancestor nodes (including the current node) and passing the array to the callbacks as a third parameter.
+ * @param node
+ * @param callback
+ * @param base
+ * @param state
+ */
+export function fullAncestor(
+ node: acorn.Node,
+ callback: FullAncestorWalkerCallback,
+ base?: RecursiveVisitors,
+ state?: TState
+): void
+
+/**
+ * builds a new walker object by using the walker functions in {@link functions} and filling in the missing ones by taking defaults from {@link base}.
+ * @param functions
+ * @param base
+ */
+export function make(
+ functions: RecursiveVisitors,
+ base?: RecursiveVisitors
+): RecursiveVisitors
+
+/**
+ * tries to locate a node in a tree at the given start and/or end offsets, which satisfies the predicate test. {@link start} and {@link end} can be either `null` (as wildcard) or a `number`. {@link test} may be a string (indicating a node type) or a function that takes (nodeType, node) arguments and returns a boolean indicating whether this node is interesting. {@link base} and {@link state} are optional, and can be used to specify a custom walker. Nodes are tested from inner to outer, so if two nodes match the boundaries, the inner one will be preferred.
+ * @param node
+ * @param start
+ * @param end
+ * @param type
+ * @param base
+ * @param state
+ */
+export function findNodeAt(
+ node: acorn.Node,
+ start: number | undefined,
+ end?: number | undefined,
+ type?: FindPredicate | string,
+ base?: RecursiveVisitors,
+ state?: TState
+): Found | undefined
+
+/**
+ * like {@link findNodeAt}, but will match any node that exists 'around' (spanning) the given position.
+ * @param node
+ * @param start
+ * @param type
+ * @param base
+ * @param state
+ */
+export function findNodeAround(
+ node: acorn.Node,
+ start: number | undefined,
+ type?: FindPredicate | string,
+ base?: RecursiveVisitors,
+ state?: TState
+): Found | undefined
+
+/**
+ * Find the outermost matching node after a given position.
+ */
+export const findNodeAfter: typeof findNodeAround
+
+/**
+ * Find the outermost matching node before a given position.
+ */
+export const findNodeBefore: typeof findNodeAround
+
+export const base: RecursiveVisitors
diff --git a/deps/acorn/acorn-walk/dist/walk.js b/deps/acorn/acorn-walk/dist/walk.js
index a7f81b0061a750..580df6413725f8 100644
--- a/deps/acorn/acorn-walk/dist/walk.js
+++ b/deps/acorn/acorn-walk/dist/walk.js
@@ -1,10 +1,10 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (global = global || self, factory((global.acorn = global.acorn || {}, global.acorn.walk = {})));
-}(this, (function (exports) { 'use strict';
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.acorn = global.acorn || {}, global.acorn.walk = {})));
+})(this, (function (exports) { 'use strict';
- // AST walker module for Mozilla Parser API compatible trees
+ // AST walker module for ESTree compatible trees
// A simple walk is one where you simply specify callbacks to be
// called on specific nodes. The last two arguments are optional. A
@@ -14,7 +14,7 @@
// Expression: function(node) { ... }
// });
//
- // to do something with all expressions. All Parser API node types
+ // to do something with all expressions. All ESTree node types
// can be used to identify node types, as well as Expression and
// Statement, which denote categories of nodes.
//
@@ -25,9 +25,9 @@
function simple(node, visitors, baseVisitor, state, override) {
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
- var type = override || node.type, found = visitors[type];
+ var type = override || node.type;
baseVisitor[type](node, st, c);
- if (found) { found(node, st); }
+ if (visitors[type]) { visitors[type](node, st); }
})(node, state, override);
}
@@ -38,11 +38,11 @@
var ancestors = [];
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
- var type = override || node.type, found = visitors[type];
+ var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
- if (found) { found(node, st || ancestors, ancestors); }
+ if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
if (isNew) { ancestors.pop(); }
})(node, state, override);
}
@@ -458,6 +458,4 @@
exports.recursive = recursive;
exports.simple = simple;
- Object.defineProperty(exports, '__esModule', { value: true });
-
-})));
+}));
diff --git a/deps/acorn/acorn-walk/dist/walk.mjs b/deps/acorn/acorn-walk/dist/walk.mjs
index 89dd1f1f4f3557..19eebc0e70f598 100644
--- a/deps/acorn/acorn-walk/dist/walk.mjs
+++ b/deps/acorn/acorn-walk/dist/walk.mjs
@@ -1,4 +1,4 @@
-// AST walker module for Mozilla Parser API compatible trees
+// AST walker module for ESTree compatible trees
// A simple walk is one where you simply specify callbacks to be
// called on specific nodes. The last two arguments are optional. A
@@ -8,7 +8,7 @@
// Expression: function(node) { ... }
// });
//
-// to do something with all expressions. All Parser API node types
+// to do something with all expressions. All ESTree node types
// can be used to identify node types, as well as Expression and
// Statement, which denote categories of nodes.
//
@@ -19,9 +19,9 @@
function simple(node, visitors, baseVisitor, state, override) {
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
- var type = override || node.type, found = visitors[type];
+ var type = override || node.type;
baseVisitor[type](node, st, c);
- if (found) { found(node, st); }
+ if (visitors[type]) { visitors[type](node, st); }
})(node, state, override);
}
@@ -32,11 +32,11 @@ function ancestor(node, visitors, baseVisitor, state, override) {
var ancestors = [];
if (!baseVisitor) { baseVisitor = base
; }(function c(node, st, override) {
- var type = override || node.type, found = visitors[type];
+ var type = override || node.type;
var isNew = node !== ancestors[ancestors.length - 1];
if (isNew) { ancestors.push(node); }
baseVisitor[type](node, st, c);
- if (found) { found(node, st || ancestors, ancestors); }
+ if (visitors[type]) { visitors[type](node, st || ancestors, ancestors); }
if (isNew) { ancestors.pop(); }
})(node, state, override);
}
diff --git a/deps/acorn/acorn-walk/package.json b/deps/acorn/acorn-walk/package.json
index 8d75b9711c2e35..9d3b7e5248fb83 100644
--- a/deps/acorn/acorn-walk/package.json
+++ b/deps/acorn/acorn-walk/package.json
@@ -16,8 +16,10 @@
],
"./package.json": "./package.json"
},
- "version": "8.2.0",
- "engines": {"node": ">=0.4.0"},
+ "version": "8.3.2",
+ "engines": {
+ "node": ">=0.4.0"
+ },
"maintainers": [
{
"name": "Marijn Haverbeke",
diff --git a/deps/acorn/acorn/CHANGELOG.md b/deps/acorn/acorn/CHANGELOG.md
index 02a4b546153973..eb848a58b8a091 100644
--- a/deps/acorn/acorn/CHANGELOG.md
+++ b/deps/acorn/acorn/CHANGELOG.md
@@ -1,3 +1,13 @@
+## 8.11.3 (2023-12-29)
+
+### Bug fixes
+
+Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
+
+Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
+
+Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
+
## 8.11.2 (2023-10-27)
### Bug fixes
diff --git a/deps/acorn/acorn/dist/acorn.js b/deps/acorn/acorn/dist/acorn.js
index de0096ec9a6a31..3a6a3a2aeed54c 100644
--- a/deps/acorn/acorn/dist/acorn.js
+++ b/deps/acorn/acorn/dist/acorn.js
@@ -2942,12 +2942,14 @@
// Consume `import` as an identifier for `import.meta`.
// Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
- var meta = this.parseIdent(true);
+ this.next();
if (this.type === types$1.parenL && !forNew) {
return this.parseDynamicImport(node)
} else if (this.type === types$1.dot) {
- node.meta = meta;
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
+ meta.name = "import";
+ node.meta = this.finishNode(meta, "Identifier");
return this.parseImportMeta(node)
} else {
this.unexpected();
@@ -3097,7 +3099,7 @@
var node = this.startNode();
this.next();
if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {
- var meta = this.startNodeAt(node.start, node.startLoc);
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
meta.name = "new";
node.meta = this.finishNode(meta, "Identifier");
this.next();
@@ -5925,7 +5927,7 @@
// [walk]: util/walk.js
- var version = "8.11.2";
+ var version = "8.11.3";
Parser.acorn = {
Parser: Parser,
@@ -5950,11 +5952,10 @@
};
// The main exported interface (under `self.acorn` when in the
- // browser) is a `parse` function that takes a code string and
- // returns an abstract syntax tree as specified by [Mozilla parser
- // API][api].
+ // browser) is a `parse` function that takes a code string and returns
+ // an abstract syntax tree as specified by the [ESTree spec][estree].
//
- // [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
+ // [estree]: https://github.com/estree/estree
function parse(input, options) {
return Parser.parse(input, options)
diff --git a/deps/acorn/acorn/dist/acorn.mjs b/deps/acorn/acorn/dist/acorn.mjs
index 01a49ef94da2a7..d1f81ef48511a4 100644
--- a/deps/acorn/acorn/dist/acorn.mjs
+++ b/deps/acorn/acorn/dist/acorn.mjs
@@ -2936,12 +2936,14 @@ pp$5.parseExprImport = function(forNew) {
// Consume `import` as an identifier for `import.meta`.
// Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.
if (this.containsEsc) { this.raiseRecoverable(this.start, "Escape sequence in keyword import"); }
- var meta = this.parseIdent(true);
+ this.next();
if (this.type === types$1.parenL && !forNew) {
return this.parseDynamicImport(node)
} else if (this.type === types$1.dot) {
- node.meta = meta;
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
+ meta.name = "import";
+ node.meta = this.finishNode(meta, "Identifier");
return this.parseImportMeta(node)
} else {
this.unexpected();
@@ -3091,7 +3093,7 @@ pp$5.parseNew = function() {
var node = this.startNode();
this.next();
if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {
- var meta = this.startNodeAt(node.start, node.startLoc);
+ var meta = this.startNodeAt(node.start, node.loc && node.loc.start);
meta.name = "new";
node.meta = this.finishNode(meta, "Identifier");
this.next();
@@ -5919,7 +5921,7 @@ pp.readWord = function() {
// [walk]: util/walk.js
-var version = "8.11.2";
+var version = "8.11.3";
Parser.acorn = {
Parser: Parser,
@@ -5944,11 +5946,10 @@ Parser.acorn = {
};
// The main exported interface (under `self.acorn` when in the
-// browser) is a `parse` function that takes a code string and
-// returns an abstract syntax tree as specified by [Mozilla parser
-// API][api].
+// browser) is a `parse` function that takes a code string and returns
+// an abstract syntax tree as specified by the [ESTree spec][estree].
//
-// [api]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API
+// [estree]: https://github.com/estree/estree
function parse(input, options) {
return Parser.parse(input, options)
diff --git a/deps/acorn/acorn/package.json b/deps/acorn/acorn/package.json
index 430603dc8c3d57..1b8dc76afc3cf5 100644
--- a/deps/acorn/acorn/package.json
+++ b/deps/acorn/acorn/package.json
@@ -16,7 +16,7 @@
],
"./package.json": "./package.json"
},
- "version": "8.11.2",
+ "version": "8.11.3",
"engines": {
"node": ">=0.4.0"
},
diff --git a/deps/ada/ada.cpp b/deps/ada/ada.cpp
index 449046ff41d3ca..9641cce39cda12 100644
--- a/deps/ada/ada.cpp
+++ b/deps/ada/ada.cpp
@@ -1,4 +1,4 @@
-/* auto-generated on 2023-11-19 13:35:02 -0500. Do not edit! */
+/* auto-generated on 2024-01-29 13:13:24 -0500. Do not edit! */
/* begin file src/ada.cpp */
#include "ada.h"
/* begin file src/checkers.cpp */
@@ -11221,7 +11221,7 @@ ada_warn_unused std::string to_string(ada::state state) {
namespace ada {
bool url::parse_opaque_host(std::string_view input) {
- ada_log("parse_opaque_host ", input, "[", input.size(), " bytes]");
+ ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
if (std::any_of(input.begin(), input.end(),
ada::unicode::is_forbidden_host_code_point)) {
return is_valid = false;
@@ -11235,7 +11235,7 @@ bool url::parse_opaque_host(std::string_view input) {
}
bool url::parse_ipv4(std::string_view input) {
- ada_log("parse_ipv4 ", input, "[", input.size(), " bytes]");
+ ada_log("parse_ipv4 ", input, " [", input.size(), " bytes]");
if (input.back() == '.') {
input.remove_suffix(1);
}
@@ -11277,7 +11277,7 @@ bool url::parse_ipv4(std::string_view input) {
// We have the last value.
// At this stage, ipv4 contains digit_count*8 bits.
// So we have 32-digit_count*8 bits left.
- if (segment_result > (uint64_t(1) << (32 - digit_count * 8))) {
+ if (segment_result >= (uint64_t(1) << (32 - digit_count * 8))) {
return is_valid = false;
}
ipv4 <<= (32 - digit_count * 8);
@@ -11310,7 +11310,7 @@ bool url::parse_ipv4(std::string_view input) {
}
bool url::parse_ipv6(std::string_view input) {
- ada_log("parse_ipv6 ", input, "[", input.size(), " bytes]");
+ ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
if (input.empty()) {
return is_valid = false;
@@ -11634,7 +11634,7 @@ ada_really_inline bool url::parse_scheme(const std::string_view input) {
}
ada_really_inline bool url::parse_host(std::string_view input) {
- ada_log("parse_host ", input, "[", input.size(), " bytes]");
+ ada_log("parse_host ", input, " [", input.size(), " bytes]");
if (input.empty()) {
return is_valid = false;
} // technically unnecessary.
@@ -11686,6 +11686,8 @@ ada_really_inline bool url::parse_host(std::string_view input) {
ada_log("parse_host to_ascii returns false");
return is_valid = false;
}
+ ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
+ " bytes]");
if (std::any_of(host.value().begin(), host.value().end(),
ada::unicode::is_forbidden_domain_code_point)) {
@@ -11696,7 +11698,7 @@ ada_really_inline bool url::parse_host(std::string_view input) {
// If asciiDomain ends in a number, then return the result of IPv4 parsing
// asciiDomain.
if (checkers::is_ipv4(host.value())) {
- ada_log("parse_host got ipv4", *host);
+ ada_log("parse_host got ipv4 ", *host);
return parse_ipv4(host.value());
}
@@ -13571,7 +13573,7 @@ void url_aggregator::set_hash(const std::string_view input) {
bool url_aggregator::set_href(const std::string_view input) {
ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
- ada_log("url_aggregator::set_href ", input, "[", input.size(), " bytes]");
+ ada_log("url_aggregator::set_href ", input, " [", input.size(), " bytes]");
ada::result out = ada::parse(input);
ada_log("url_aggregator::set_href, success :", out.has_value());
@@ -13585,7 +13587,8 @@ bool url_aggregator::set_href(const std::string_view input) {
}
ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
- ada_log("url_aggregator:parse_host ", input, "[", input.size(), " bytes]");
+ ada_log("url_aggregator:parse_host \"", input, "\" [", input.size(),
+ " bytes]");
ADA_ASSERT_TRUE(validate());
ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
if (input.empty()) {
@@ -13635,7 +13638,7 @@ ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
update_base_hostname(input);
if (checkers::is_ipv4(get_hostname())) {
ada_log("parse_host fast path ipv4");
- return parse_ipv4(get_hostname());
+ return parse_ipv4(get_hostname(), true);
}
ada_log("parse_host fast path ", get_hostname());
return true;
@@ -13651,6 +13654,8 @@ ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
ada_log("parse_host to_ascii returns false");
return is_valid = false;
}
+ ada_log("parse_host to_ascii succeeded ", *host, " [", host->size(),
+ " bytes]");
if (std::any_of(host.value().begin(), host.value().end(),
ada::unicode::is_forbidden_domain_code_point)) {
@@ -13660,8 +13665,8 @@ ada_really_inline bool url_aggregator::parse_host(std::string_view input) {
// If asciiDomain ends in a number, then return the result of IPv4 parsing
// asciiDomain.
if (checkers::is_ipv4(host.value())) {
- ada_log("parse_host got ipv4", *host);
- return parse_ipv4(host.value());
+ ada_log("parse_host got ipv4 ", *host);
+ return parse_ipv4(host.value(), false);
}
update_base_hostname(host.value());
@@ -13914,7 +13919,7 @@ bool url_aggregator::set_hostname(const std::string_view input) {
}
[[nodiscard]] std::string ada::url_aggregator::to_string() const {
- ada_log("url_aggregator::to_string buffer:", buffer, "[", buffer.size(),
+ ada_log("url_aggregator::to_string buffer:", buffer, " [", buffer.size(),
" bytes]");
if (!is_valid) {
return "null";
@@ -14013,8 +14018,8 @@ bool url_aggregator::set_hostname(const std::string_view input) {
return checkers::verify_dns_length(get_hostname());
}
-bool url_aggregator::parse_ipv4(std::string_view input) {
- ada_log("parse_ipv4 ", input, "[", input.size(),
+bool url_aggregator::parse_ipv4(std::string_view input, bool in_place) {
+ ada_log("parse_ipv4 ", input, " [", input.size(),
" bytes], overlaps with buffer: ",
helpers::overlaps(input, buffer) ? "yes" : "no");
ADA_ASSERT_TRUE(validate());
@@ -14038,27 +14043,32 @@ bool url_aggregator::parse_ipv4(std::string_view input) {
} else {
std::from_chars_result r;
if (is_hex) {
+ ada_log("parse_ipv4 trying to parse hex number");
r = std::from_chars(input.data() + 2, input.data() + input.size(),
segment_result, 16);
} else if ((input.length() >= 2) && input[0] == '0' &&
checkers::is_digit(input[1])) {
+ ada_log("parse_ipv4 trying to parse octal number");
r = std::from_chars(input.data() + 1, input.data() + input.size(),
segment_result, 8);
} else {
+ ada_log("parse_ipv4 trying to parse decimal number");
pure_decimal_count++;
r = std::from_chars(input.data(), input.data() + input.size(),
segment_result, 10);
}
if (r.ec != std::errc()) {
+ ada_log("parse_ipv4 parsing failed");
return is_valid = false;
}
+ ada_log("parse_ipv4 parsed ", segment_result);
input.remove_prefix(r.ptr - input.data());
}
if (input.empty()) {
// We have the last value.
// At this stage, ipv4 contains digit_count*8 bits.
// So we have 32-digit_count*8 bits left.
- if (segment_result > (uint64_t(1) << (32 - digit_count * 8))) {
+ if (segment_result >= (uint64_t(1) << (32 - digit_count * 8))) {
return is_valid = false;
}
ipv4 <<= (32 - digit_count * 8);
@@ -14076,6 +14086,7 @@ bool url_aggregator::parse_ipv4(std::string_view input) {
}
}
if ((digit_count != 4) || (!input.empty())) {
+ ada_log("parse_ipv4 found invalid (more than 4 numbers or empty) ");
return is_valid = false;
}
final:
@@ -14083,10 +14094,14 @@ bool url_aggregator::parse_ipv4(std::string_view input) {
" host: ", get_host());
// We could also check r.ptr to see where the parsing ended.
- if (pure_decimal_count == 4 && !trailing_dot) {
+ if (in_place && pure_decimal_count == 4 && !trailing_dot) {
+ ada_log(
+ "url_aggregator::parse_ipv4 completed and was already correct in the "
+ "buffer");
// The original input was already all decimal and we validated it. So we
// don't need to do anything.
} else {
+ ada_log("url_aggregator::parse_ipv4 completed and we need to update it");
// Optimization opportunity: Get rid of unnecessary string return in ipv4
// serializer.
// TODO: This is likely a bug because it goes back update_base_hostname, not
@@ -14100,8 +14115,11 @@ bool url_aggregator::parse_ipv4(std::string_view input) {
}
bool url_aggregator::parse_ipv6(std::string_view input) {
+ // TODO: Implement in_place optimization: we know that input points
+ // in the buffer, so we can just check whether the buffer is already
+ // well formatted.
// TODO: Find a way to merge parse_ipv6 with url.cpp implementation.
- ada_log("parse_ipv6 ", input, "[", input.size(), " bytes]");
+ ada_log("parse_ipv6 ", input, " [", input.size(), " bytes]");
ADA_ASSERT_TRUE(validate());
ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
if (input.empty()) {
@@ -14335,7 +14353,7 @@ bool url_aggregator::parse_ipv6(std::string_view input) {
}
bool url_aggregator::parse_opaque_host(std::string_view input) {
- ada_log("parse_opaque_host ", input, "[", input.size(), " bytes]");
+ ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
ADA_ASSERT_TRUE(validate());
ADA_ASSERT_TRUE(!helpers::overlaps(input, buffer));
if (std::any_of(input.begin(), input.end(),
diff --git a/deps/ada/ada.h b/deps/ada/ada.h
index a4aa39d17046ad..03a22534d3f87c 100644
--- a/deps/ada/ada.h
+++ b/deps/ada/ada.h
@@ -1,4 +1,4 @@
-/* auto-generated on 2023-11-19 13:35:02 -0500. Do not edit! */
+/* auto-generated on 2024-01-29 13:13:24 -0500. Do not edit! */
/* begin file include/ada.h */
/**
* @file ada.h
@@ -4868,10 +4868,12 @@ struct url_aggregator : url_base {
}
/**
- * Return true on success.
+ * Return true on success. The 'in_place' parameter indicates whether the
+ * the string_view input is pointing in the buffer. When in_place is false,
+ * we must nearly always update the buffer.
* @see https://url.spec.whatwg.org/#concept-ipv4-parser
*/
- [[nodiscard]] bool parse_ipv4(std::string_view input);
+ [[nodiscard]] bool parse_ipv4(std::string_view input, bool in_place);
/**
* Return true on success.
@@ -7078,14 +7080,14 @@ url_search_params_entries_iter::next() {
#ifndef ADA_ADA_VERSION_H
#define ADA_ADA_VERSION_H
-#define ADA_VERSION "2.7.4"
+#define ADA_VERSION "2.7.6"
namespace ada {
enum {
ADA_VERSION_MAJOR = 2,
ADA_VERSION_MINOR = 7,
- ADA_VERSION_REVISION = 4,
+ ADA_VERSION_REVISION = 6,
};
} // namespace ada
diff --git a/deps/ada/unofficial.gni b/deps/ada/unofficial.gni
index d3d14193c5a154..ab7dc27de3e304 100644
--- a/deps/ada/unofficial.gni
+++ b/deps/ada/unofficial.gni
@@ -1,7 +1,3 @@
-# Copyright 2023 Microsoft Inc.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
# This file is used by GN for building, which is NOT the build system used for
# building official binaries.
# Please edit the gyp files if you are making changes to build system.
diff --git a/deps/base64/base64/CMakeLists.txt b/deps/base64/base64/CMakeLists.txt
index be1de665a2cd59..ff9f6f21e1ee28 100644
--- a/deps/base64/base64/CMakeLists.txt
+++ b/deps/base64/base64/CMakeLists.txt
@@ -17,7 +17,7 @@ if (POLICY CMP0127)
cmake_policy(SET CMP0127 NEW)
endif()
-project(base64 LANGUAGES C VERSION 0.5.1)
+project(base64 LANGUAGES C VERSION 0.5.2)
include(GNUInstallDirs)
include(CMakeDependentOption)
diff --git a/deps/base64/base64/Makefile b/deps/base64/base64/Makefile
index bcb944551ae881..bba3fde4dd05bf 100644
--- a/deps/base64/base64/Makefile
+++ b/deps/base64/base64/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -std=c99 -O3 -Wall -Wextra -pedantic
+CFLAGS += -std=c99 -O3 -Wall -Wextra -pedantic -DBASE64_STATIC_DEFINE
# Set OBJCOPY if not defined by environment:
OBJCOPY ?= objcopy
@@ -56,6 +56,7 @@ ifdef OPENMP
CFLAGS += -fopenmp
endif
+TARGET := $(shell $(CC) -dumpmachine)
.PHONY: all analyze clean
@@ -64,9 +65,17 @@ all: bin/base64 lib/libbase64.o
bin/base64: bin/base64.o lib/libbase64.o
$(CC) $(CFLAGS) -o $@ $^
-lib/libbase64.o: $(OBJS)
- $(LD) -r -o $@ $^
- $(OBJCOPY) --keep-global-symbols=lib/exports.txt $@
+# Workaround: mangle exported function names on MinGW32.
+lib/exports.build.txt: lib/exports.txt
+ifeq (i686-w64-mingw32, $(TARGET))
+ sed -e 's/^/_/' $< > $@
+else
+ cp -f $< $@
+endif
+
+lib/libbase64.o: lib/exports.build.txt $(OBJS)
+ $(LD) -r -o $@ $(OBJS)
+ $(OBJCOPY) --keep-global-symbols=$< $@
lib/config.h:
@echo "#define HAVE_AVX512 $(HAVE_AVX512)" > $@
@@ -97,4 +106,4 @@ analyze: clean
scan-build --use-analyzer=`which clang` --status-bugs make
clean:
- rm -f bin/base64 bin/base64.o lib/libbase64.o lib/config.h $(OBJS)
+ rm -f bin/base64 bin/base64.o lib/libbase64.o lib/config.h lib/exports.build.txt $(OBJS)
diff --git a/deps/base64/base64/bin/base64.c b/deps/base64/base64/bin/base64.c
index 98d6b3cbab560c..0e32ed03762df7 100644
--- a/deps/base64/base64/bin/base64.c
+++ b/deps/base64/base64/bin/base64.c
@@ -1,4 +1,19 @@
-#define _XOPEN_SOURCE // IOV_MAX
+// Test for MinGW.
+#if defined(__MINGW32__) || defined(__MINGW64__)
+# define MINGW
+#endif
+
+// Decide if the writev(2) system call needs to be emulated as a series of
+// write(2) calls. At least MinGW does not support writev(2).
+#ifdef MINGW
+# define EMULATE_WRITEV
+#endif
+
+// Include the necessary system header when using the system's writev(2).
+#ifndef EMULATE_WRITEV
+# define _XOPEN_SOURCE // Unlock IOV_MAX
+# include
+#endif
#include
#include
@@ -8,7 +23,7 @@
#include
#include
#include
-#include
+
#include "../include/libbase64.h"
// Size of the buffer for the "raw" (not base64-encoded) data in bytes.
@@ -50,6 +65,59 @@ struct buffer {
char *enc;
};
+// Optionally emulate writev(2) as a series of write calls.
+#ifdef EMULATE_WRITEV
+
+// Quick and dirty definition of IOV_MAX as it is probably not defined.
+#ifndef IOV_MAX
+# define IOV_MAX 1024
+#endif
+
+// Quick and dirty definition of this system struct, for local use only.
+struct iovec {
+
+ // Opaque data pointer.
+ void *iov_base;
+
+ // Length of the data in bytes.
+ size_t iov_len;
+};
+
+static ssize_t
+writev (const int fd, const struct iovec *iov, int iovcnt)
+{
+ ssize_t r, nwrite = 0;
+
+ // Reset the error marker.
+ errno = 0;
+
+ while (iovcnt-- > 0) {
+
+ // Write the vector; propagate errors back to the caller. Note
+ // that this loses information about how much vectors have been
+ // successfully written, but that also seems to be the case
+ // with the real function. The API is somewhat flawed.
+ if ((r = write(fd, iov->iov_base, iov->iov_len)) < 0) {
+ return r;
+ }
+
+ // Update the total write count.
+ nwrite += r;
+
+ // Return early after a partial write; the caller should retry.
+ if ((size_t) r != iov->iov_len) {
+ break;
+ }
+
+ // Move to the next vector.
+ iov++;
+ }
+
+ return nwrite;
+}
+
+#endif // EMULATE_WRITEV
+
static bool
buffer_alloc (const struct config *config, struct buffer *buf)
{
@@ -272,10 +340,23 @@ encode (const struct config *config, struct buffer *buf)
return true;
}
-static int
+static inline size_t
+find_newline (const char *p, const size_t avail)
+{
+ // This is very naive and can probably be improved by vectorization.
+ for (size_t len = 0; len < avail; len++) {
+ if (p[len] == '\n') {
+ return len;
+ }
+ }
+
+ return avail;
+}
+
+static bool
decode (const struct config *config, struct buffer *buf)
{
- size_t nread, nout;
+ size_t avail;
struct base64_state state;
// Initialize the decoder's state structure.
@@ -283,18 +364,51 @@ decode (const struct config *config, struct buffer *buf)
// Read encoded data into the buffer. Use the smallest buffer size to
// be on the safe side: the decoded output will fit the raw buffer.
- while ((nread = fread(buf->enc, 1, BUFFER_RAW_SIZE, config->fp)) > 0) {
+ while ((avail = fread(buf->enc, 1, BUFFER_RAW_SIZE, config->fp)) > 0) {
+ char *start = buf->enc;
+ char *outbuf = buf->raw;
+ size_t ototal = 0;
+
+ // By popular demand, this utility tries to be bug-compatible
+ // with GNU `base64'. That includes silently ignoring newlines
+ // in the input. Tokenize the input on newline characters.
+ while (avail > 0) {
+
+ // Find the offset of the next newline character, which
+ // is also the length of the next chunk.
+ size_t outlen, len = find_newline(start, avail);
+
+ // Ignore empty chunks.
+ if (len == 0) {
+ start++;
+ avail--;
+ continue;
+ }
- // Decode the input into the raw buffer.
- if (base64_stream_decode(&state, buf->enc, nread,
- buf->raw, &nout) == 0) {
- fprintf(stderr, "%s: %s: decoding error\n",
- config->name, config->file);
- return false;
+ // Decode the chunk into the raw buffer.
+ if (base64_stream_decode(&state, start, len,
+ outbuf, &outlen) == 0) {
+ fprintf(stderr, "%s: %s: decoding error\n",
+ config->name, config->file);
+ return false;
+ }
+
+ // Update the output buffer pointer and total size.
+ outbuf += outlen;
+ ototal += outlen;
+
+ // Bail out if the whole string has been consumed.
+ if (len == avail) {
+ break;
+ }
+
+ // Move the start pointer past the newline.
+ start += len + 1;
+ avail -= len + 1;
}
// Append the raw data to the output stream.
- if (write_stdout(config, buf->raw, nout) == false) {
+ if (write_stdout(config, buf->raw, ototal) == false) {
return false;
}
}
diff --git a/deps/base64/base64/lib/env.h b/deps/base64/base64/lib/env.h
index d5c2fdb7952735..d489ba54215bbf 100644
--- a/deps/base64/base64/lib/env.h
+++ b/deps/base64/base64/lib/env.h
@@ -1,6 +1,8 @@
#ifndef BASE64_ENV_H
#define BASE64_ENV_H
+#include
+
// This header file contains macro definitions that describe certain aspects of
// the compile-time environment. Compatibility and portability macros go here.
@@ -46,12 +48,10 @@
#if defined (__x86_64__)
// This also works for the x32 ABI, which has a 64-bit word size.
# define BASE64_WORDSIZE 64
-#elif defined (_INTEGRAL_MAX_BITS)
-# define BASE64_WORDSIZE _INTEGRAL_MAX_BITS
-#elif defined (__WORDSIZE)
-# define BASE64_WORDSIZE __WORDSIZE
-#elif defined (__SIZE_WIDTH__)
-# define BASE64_WORDSIZE __SIZE_WIDTH__
+#elif SIZE_MAX == UINT32_MAX
+# define BASE64_WORDSIZE 32
+#elif SIZE_MAX == UINT64_MAX
+# define BASE64_WORDSIZE 64
#else
# error BASE64_WORDSIZE_NOT_DEFINED
#endif
diff --git a/deps/base64/base64/test/CMakeLists.txt b/deps/base64/base64/test/CMakeLists.txt
index ef8787047b2944..f07b65a00c2cb4 100644
--- a/deps/base64/base64/test/CMakeLists.txt
+++ b/deps/base64/base64/test/CMakeLists.txt
@@ -32,12 +32,10 @@ add_base64_test(test_base64
test_base64.c
)
-if (NOT WIN32)
- add_base64_test(benchmark
- codec_supported.c
- benchmark.c
- )
-endif()
+add_base64_test(benchmark
+ codec_supported.c
+ benchmark.c
+)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(benchmark PRIVATE rt)
diff --git a/deps/base64/base64/test/Makefile b/deps/base64/base64/test/Makefile
index c896627e0bd8d6..7ecb893a6363b9 100644
--- a/deps/base64/base64/test/Makefile
+++ b/deps/base64/base64/test/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -std=c99 -O3 -Wall -Wextra -pedantic
+CFLAGS += -std=c99 -O3 -Wall -Wextra -pedantic -DBASE64_STATIC_DEFINE
ifdef OPENMP
CFLAGS += -fopenmp
endif
@@ -6,6 +6,8 @@ endif
TARGET := $(shell $(CC) -dumpmachine)
ifneq (, $(findstring darwin, $(TARGET)))
BENCH_LDFLAGS=
+else ifneq (, $(findstring mingw, $(TARGET)))
+ BENCH_LDFLAGS=
else
# default to linux, -lrt needed
BENCH_LDFLAGS=-lrt
diff --git a/deps/base64/base64/test/benchmark.c b/deps/base64/base64/test/benchmark.c
index 80d21a389cb98c..e78b696bedb6b3 100644
--- a/deps/base64/base64/test/benchmark.c
+++ b/deps/base64/base64/test/benchmark.c
@@ -8,17 +8,25 @@
#define _XOPEN_SOURCE 600
#endif
+// Standard cross-platform includes.
#include
-#include
-#include
-#include
-#include
#include
#include
-#include
-#ifdef __MACH__
-#include
+// Platform-specific includes.
+#if defined(_WIN32) || defined(_WIN64)
+# include
+# include
+#else
+# include
+# include
+# include
+# include
+# include
+#endif
+
+#if defined(__MACH__)
+# include
#endif
#include "../include/libbase64.h"
@@ -60,6 +68,27 @@ bytes_to_mb (size_t bytes)
static bool
get_random_data (struct buffers *b, char **errmsg)
{
+#if defined(_WIN32) || defined(_WIN64)
+ HCRYPTPROV hProvider = 0;
+
+ if (!CryptAcquireContext(&hProvider, 0, 0, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
+ *errmsg = "Error: CryptAcquireContext";
+ return false;
+ }
+
+ if (!CryptGenRandom(hProvider, b->regsz, b->reg)) {
+ CryptReleaseContext(hProvider, 0);
+ *errmsg = "Error: CryptGenRandom";
+ return false;
+ }
+
+ if (!CryptReleaseContext(hProvider, 0)) {
+ *errmsg = "Error: CryptReleaseContext";
+ return false;
+ }
+
+ return true;
+#else
int fd;
ssize_t nread;
size_t total_read = 0;
@@ -80,16 +109,19 @@ get_random_data (struct buffers *b, char **errmsg)
}
total_read += nread;
}
+
close(fd);
return true;
+#endif
}
-#ifdef __MACH__
+#if defined(__MACH__)
typedef uint64_t base64_timespec;
+
static void
-base64_gettime (base64_timespec * o_time)
+base64_gettime (base64_timespec *t)
{
- *o_time = mach_absolute_time();
+ *t = mach_absolute_time();
}
static float
@@ -101,18 +133,39 @@ timediff_sec (base64_timespec *start, base64_timespec *end)
return (float)((diff * tb.numer) / tb.denom) / 1e9f;
}
+#elif defined(_WIN32) || defined(_WIN64)
+typedef ULARGE_INTEGER base64_timespec;
+
+static void
+base64_gettime (base64_timespec *t)
+{
+ FILETIME current_time_ft;
+
+ GetSystemTimePreciseAsFileTime(¤t_time_ft);
+
+ t->LowPart = current_time_ft.dwLowDateTime;
+ t->HighPart = current_time_ft.dwHighDateTime;
+}
+
+static float
+timediff_sec (base64_timespec *start, base64_timespec *end)
+{
+ // Timer resolution is 100 nanoseconds (10^-7 sec).
+ return (end->QuadPart - start->QuadPart) / 1e7f;
+}
#else
typedef struct timespec base64_timespec;
+
static void
-base64_gettime (base64_timespec * o_time)
+base64_gettime (base64_timespec *t)
{
- clock_gettime(CLOCK_REALTIME, o_time);
+ clock_gettime(CLOCK_REALTIME, t);
}
static float
timediff_sec (base64_timespec *start, base64_timespec *end)
{
- return (end->tv_sec - start->tv_sec) + ((float)(end->tv_nsec - start->tv_nsec)) / 1e9f;
+ return (end->tv_sec - start->tv_sec) + (end->tv_nsec - start->tv_nsec) / 1e9f;
}
#endif
diff --git a/deps/base64/unofficial.gni b/deps/base64/unofficial.gni
index 269c62d976d6ad..0e69d7383762f6 100644
--- a/deps/base64/unofficial.gni
+++ b/deps/base64/unofficial.gni
@@ -1,9 +1,3 @@
-# Copyright (c) 2013-2022 GitHub Inc.
-# Copyright 2022 the V8 project authors. All rights reserved.
-# Copyright 2023 Microsoft Inc.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
# This file is used by GN for building, which is NOT the build system used for
# building official binaries.
# Please edit the gyp files if you are making changes to build system.
@@ -25,7 +19,7 @@ template("base64_gn_build") {
} else {
defines = []
}
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
defines += [
"HAVE_SSSE3=1",
"HAVE_SSE41=1",
@@ -35,10 +29,10 @@ template("base64_gn_build") {
"HAVE_AVX512=1",
]
}
- if (target_cpu == "arm") {
+ if (current_cpu == "arm") {
defines += [ "HAVE_NEON32=1" ]
}
- if (target_cpu == "arm64") {
+ if (current_cpu == "arm64") {
defines += [ "HAVE_NEON64=1" ]
}
if (is_clang || !is_win) {
@@ -75,7 +69,7 @@ template("base64_gn_build") {
source_set("base64_ssse3") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/ssse3/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [ "-mssse3" ]
}
@@ -85,7 +79,7 @@ template("base64_gn_build") {
source_set("base64_sse41") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/sse41/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [ "-msse4.1" ]
}
@@ -95,7 +89,7 @@ template("base64_gn_build") {
source_set("base64_sse42") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/sse42/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [ "-msse4.2" ]
}
@@ -105,7 +99,7 @@ template("base64_gn_build") {
source_set("base64_avx") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/avx/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [ "-mavx" ]
} else if (is_win) {
@@ -117,7 +111,7 @@ template("base64_gn_build") {
source_set("base64_avx2") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/avx2/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [ "-mavx2" ]
} else if (is_win) {
@@ -129,7 +123,7 @@ template("base64_gn_build") {
source_set("base64_avx512") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/avx512/codec.c" ]
- if (target_cpu == "x86" || target_cpu == "x64") {
+ if (current_cpu == "x86" || current_cpu == "x64") {
if (is_clang || !is_win) {
cflags_c = [
"-mavx512vl",
@@ -144,7 +138,7 @@ template("base64_gn_build") {
source_set("base64_neon32") {
configs += [ ":base64_internal_config" ]
sources = [ "base64/lib/arch/neon32/codec.c" ]
- if (target_cpu == "arm") {
+ if (current_cpu == "arm") {
if (is_clang || !is_win) {
cflags_c = [ "-mfpu=neon" ]
}
diff --git a/deps/brotli/brotli.gyp b/deps/brotli/brotli.gyp
index 9fc9bcdfd54ece..f82660d82c6cfa 100644
--- a/deps/brotli/brotli.gyp
+++ b/deps/brotli/brotli.gyp
@@ -6,6 +6,7 @@
'c/common/context.c',
'c/common/dictionary.c',
'c/common/platform.c',
+ 'c/common/shared_dictionary.c',
'c/common/transform.c',
# Decoder
@@ -22,6 +23,7 @@
'c/enc/brotli_bit_stream.c',
'c/enc/cluster.c',
'c/enc/command.c',
+ 'c/enc/compound_dictionary.c',
'c/enc/compress_fragment.c',
'c/enc/compress_fragment_two_pass.c',
'c/enc/dictionary_hash.c',
diff --git a/deps/brotli/c/common/constants.c b/deps/brotli/c/common/constants.c
index 6bad9f613ca5d4..89866b150503c6 100644
--- a/deps/brotli/c/common/constants.c
+++ b/deps/brotli/c/common/constants.c
@@ -4,7 +4,7 @@
See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
-#include "./constants.h"
+#include "constants.h"
const BrotliPrefixCodeRange
_kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = {
diff --git a/deps/brotli/c/common/constants.h b/deps/brotli/c/common/constants.h
index e848195a0dc20f..31e5bd376e90fc 100644
--- a/deps/brotli/c/common/constants.h
+++ b/deps/brotli/c/common/constants.h
@@ -12,10 +12,11 @@
#ifndef BROTLI_COMMON_CONSTANTS_H_
#define BROTLI_COMMON_CONSTANTS_H_
-#include "./platform.h"
#include
#include
+#include "platform.h"
+
/* Specification: 7.3. Encoding of the context map */
#define BROTLI_CONTEXT_MAP_MAX_RLE 16
diff --git a/deps/brotli/c/common/context.c b/deps/brotli/c/common/context.c
index 2c2dceba9b6229..7f9c95869917b3 100644
--- a/deps/brotli/c/common/context.c
+++ b/deps/brotli/c/common/context.c
@@ -1,4 +1,4 @@
-#include "./context.h"
+#include "context.h"
#include
diff --git a/deps/brotli/c/common/dictionary.bin b/deps/brotli/c/common/dictionary.bin
deleted file mode 100644
index a585c0e292eba1..00000000000000
--- a/deps/brotli/c/common/dictionary.bin
+++ /dev/null
@@ -1,432 +0,0 @@
-timedownlifeleftbackcodedatashowonlysitecityopenjustlikefreeworktextyearoverbodyloveformbookplaylivelinehelphomesidemorewordlongthemviewfindpagedaysfullheadtermeachareafromtruemarkableuponhighdatelandnewsevennextcasebothpostusedmadehandherewhatnameLinkblogsizebaseheldmakemainuser') +holdendswithNewsreadweresigntakehavegameseencallpathwellplusmenufilmpartjointhislistgoodneedwayswestjobsmindalsologorichuseslastteamarmyfoodkingwilleastwardbestfirePageknowaway.pngmovethanloadgiveselfnotemuchfeedmanyrockicononcelookhidediedHomerulehostajaxinfoclublawslesshalfsomesuchzone100%onescareTimeracebluefourweekfacehopegavehardlostwhenparkkeptpassshiproomHTMLplanTypedonesavekeepflaglinksoldfivetookratetownjumpthusdarkcardfilefearstaykillthatfallautoever.comtalkshopvotedeepmoderestturnbornbandfellroseurl(skinrolecomeactsagesmeetgold.jpgitemvaryfeltthensenddropViewcopy1.0"stopelseliestourpack.gifpastcss?graymean>rideshotlatesaidroadvar feeljohnrickportfast'UA-deadpoorbilltypeU.S.woodmust2px;Inforankwidewantwalllead[0];paulwavesure$('#waitmassarmsgoesgainlangpaid!-- lockunitrootwalkfirmwifexml"songtest20pxkindrowstoolfontmailsafestarmapscorerainflowbabyspansays4px;6px;artsfootrealwikiheatsteptriporg/lakeweaktoldFormcastfansbankveryrunsjulytask1px;goalgrewslowedgeid="sets5px;.js?40pxif (soonseatnonetubezerosentreedfactintogiftharm18pxcamehillboldzoomvoideasyringfillpeakinitcost3px;jacktagsbitsrolleditknewnearironfreddiskwentsoilputs/js/holyT22:ISBNT20:adamseesjson', 'contT21: RSSloopasiamoonsoulLINEfortcartT14:80px!--<9px;T04:mike:46ZniceinchYorkricezh:'));puremageparatonebond:37Z_of_']);000,zh:tankyardbowlbush:56ZJava30px
-|}
-%C3%:34ZjeffEXPIcashvisagolfsnowzh:quer.csssickmeatmin.binddellhirepicsrent:36ZHTTP-201fotowolfEND xbox:54ZBODYdick;
-}
-exit:35Zvarsbeat'});diet999;anne}}[i].Langkm²wiretoysaddssealalex;
- }echonine.org005)tonyjewssandlegsroof000) 200winegeardogsbootgarycutstyletemption.xmlcockgang$('.50pxPh.Dmiscalanloandeskmileryanunixdisc);}
-dustclip).
-
-70px-200DVDs7]>sonyguysfuckpipe|-
-!002)ndow[1];[];
-Log salt
- bangtrimbath){
-00px
-});ko:feesad>
s:// [];tollplug(){
-{
- .js'200pdualboat.JPG);
-}quot);
-
-');
-
-}
201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037201320122011201020092008200720062005200420032002200120001999199819971996199519941993199219911990198919881987198619851984198319821981198019791978197719761975197419731972197119701969196819671966196519641963196219611960195919581957195619551954195319521951195010001024139400009999comomásesteestaperotodohacecadaañobiendíaasívidacasootroforosolootracualdijosidograntipotemadebealgoquéestonadatrespococasabajotodasinoaguapuesunosantediceluisellamayozonaamorpisoobraclicellodioshoracasiзанаомрарутанепоотизнодотожеонихНаеебымыВысовывоНообПолиниРФНеМытыОнимдаЗаДаНуОбтеИзейнуммТыужفيأنمامعكلأورديافىهولملكاولهبسالإنهيأيقدهلثمبهلوليبلايبكشيامأمنتبيلنحبهممشوشfirstvideolightworldmediawhitecloseblackrightsmallbooksplacemusicfieldorderpointvalueleveltableboardhousegroupworksyearsstatetodaywaterstartstyledeathpowerphonenighterrorinputabouttermstitletoolseventlocaltimeslargewordsgamesshortspacefocusclearmodelblockguideradiosharewomenagainmoneyimagenamesyounglineslatercolorgreenfront&watchforcepricerulesbeginaftervisitissueareasbelowindextotalhourslabelprintpressbuiltlinksspeedstudytradefoundsenseundershownformsrangeaddedstillmovedtakenaboveflashfixedoftenotherviewschecklegalriveritemsquickshapehumanexistgoingmoviethirdbasicpeacestagewidthloginideaswrotepagesusersdrivestorebreaksouthvoicesitesmonthwherebuildwhichearthforumthreesportpartyClicklowerlivesclasslayerentrystoryusagesoundcourtyour birthpopuptypesapplyImagebeinguppernoteseveryshowsmeansextramatchtrackknownearlybegansuperpapernorthlearngivennamedendedTermspartsGroupbrandusingwomanfalsereadyaudiotakeswhile.com/livedcasesdailychildgreatjudgethoseunitsneverbroadcoastcoverapplefilescyclesceneplansclickwritequeenpieceemailframeolderphotolimitcachecivilscaleenterthemetheretouchboundroyalaskedwholesincestock namefaithheartemptyofferscopeownedmightalbumthinkbloodarraymajortrustcanonunioncountvalidstoneStyleLoginhappyoccurleft:freshquitefilmsgradeneedsurbanfightbasishoverauto;route.htmlmixedfinalYour slidetopicbrownalonedrawnsplitreachRightdatesmarchquotegoodsLinksdoubtasyncthumballowchiefyouthnovel10px;serveuntilhandsCheckSpacequeryjamesequaltwice0,000Startpanelsongsroundeightshiftworthpostsleadsweeksavoidthesemilesplanesmartalphaplantmarksratesplaysclaimsalestextsstarswrongthing.org/multiheardPowerstandtokensolid(thisbringshipsstafftriedcallsfullyfactsagentThis //-->adminegyptEvent15px;Emailtrue"crossspentblogsbox">notedleavechinasizesguestrobotheavytrue,sevengrandcrimesignsawaredancephase>
-
-
-name=diegopage swiss-->
-
-#fff;">Log.com"treatsheet) && 14px;sleepntentfiledja:id="cName"worseshots-box-delta
-<bears:48Z spendbakershops= "";php">ction13px;brianhellosize=o=%2F joinmaybe, fjsimg" ")[0]MTopBType"newlyDanskczechtrailknowsfaq">zh-cn10);
--1");type=bluestrulydavis.js';>
-
-form jesus100% menu.
-
-walesrisksumentddingb-likteachgif" vegasdanskeestishqipsuomisobredesdeentretodospuedeañosestátienehastaotrospartedondenuevohacerformamismomejormundoaquídíassóloayudafechatodastantomenosdatosotrassitiomuchoahoralugarmayorestoshorastenerantesfotosestaspaísnuevasaludforosmedioquienmesespoderchileserávecesdecirjoséestarventagrupohechoellostengoamigocosasnivelgentemismaairesjuliotemashaciafavorjuniolibrepuntobuenoautorabrilbuenatextomarzosaberlistaluegocómoenerojuegoperúhaberestoynuncamujervalorfueralibrogustaigualvotoscasosguíapuedosomosavisousteddebennochebuscafaltaeurosseriedichocursoclavecasasleónplazolargoobrasvistaapoyojuntotratavistocrearcampohemoscincocargopisosordenhacenáreadiscopedrocercapuedapapelmenorútilclarojorgecalleponertardenadiemarcasigueellassiglocochemotosmadreclaserestoniñoquedapasarbancohijosviajepabloéstevienereinodejarfondocanalnorteletracausatomarmanoslunesautosvillavendopesartipostengamarcollevapadreunidovamoszonasambosbandamariaabusomuchasubirriojavivirgradochicaallíjovendichaestantalessalirsuelopesosfinesllamabuscoéstalleganegroplazahumorpagarjuntadobleislasbolsabañohablaluchaÁreadicenjugarnotasvalleallácargadolorabajoestégustomentemariofirmacostofichaplatahogarartesleyesaquelmuseobasespocosmitadcielochicomiedoganarsantoetapadebesplayaredessietecortecoreadudasdeseoviejodeseaaguas"domaincommonstatuseventsmastersystemactionbannerremovescrollupdateglobalmediumfilternumberchangeresultpublicscreenchoosenormaltravelissuessourcetargetspringmodulemobileswitchphotosborderregionitselfsocialactivecolumnrecordfollowtitle>eitherlengthfamilyfriendlayoutauthorcreatereviewsummerserverplayedplayerexpandpolicyformatdoublepointsseriespersonlivingdesignmonthsforcesuniqueweightpeopleenergynaturesearchfigurehavingcustomoffsetletterwindowsubmitrendergroupsuploadhealthmethodvideosschoolfutureshadowdebatevaluesObjectothersrightsleaguechromesimplenoticesharedendingseasonreportonlinesquarebuttonimagesenablemovinglatestwinterFranceperiodstrongrepeatLondondetailformeddemandsecurepassedtoggleplacesdevicestaticcitiesstreamyellowattackstreetflighthiddeninfo">openedusefulvalleycausesleadersecretseconddamagesportsexceptratingsignedthingseffectfieldsstatesofficevisualeditorvolumeReportmuseummoviesparentaccessmostlymother" id="marketgroundchancesurveybeforesymbolmomentspeechmotioninsidematterCenterobjectexistsmiddleEuropegrowthlegacymannerenoughcareeransweroriginportalclientselectrandomclosedtopicscomingfatheroptionsimplyraisedescapechosenchurchdefinereasoncorneroutputmemoryiframepolicemodelsNumberduringoffersstyleskilledlistedcalledsilvermargindeletebetterbrowselimitsGlobalsinglewidgetcenterbudgetnowrapcreditclaimsenginesafetychoicespirit-stylespreadmakingneededrussiapleaseextentScriptbrokenallowschargedividefactormember-basedtheoryconfigaroundworkedhelpedChurchimpactshouldalwayslogo" bottomlist">){var prefixorangeHeader.push(couplegardenbridgelaunchReviewtakingvisionlittledatingButtonbeautythemesforgotSearchanchoralmostloadedChangereturnstringreloadMobileincomesupplySourceordersviewed courseAbout islandPhilipawardshandleimportOfficeregardskillsnationSportsdegreeweekly (e.g.behinddoctorloggedunitedbeyond-scaleacceptservedmarineFootercamera
-_form"leavesstress" />
-.gif" onloadloaderOxfordsistersurvivlistenfemaleDesignsize="appealtext">levelsthankshigherforcedanimalanyoneAfricaagreedrecentPeople wonderpricesturned|| {};main">inlinesundaywrap">failedcensusminutebeaconquotes150px|estateremoteemail"linkedright;signalformal1.htmlsignupprincefloat:.png" forum.AccesspaperssoundsextendHeightsliderUTF-8"& Before. WithstudioownersmanageprofitjQueryannualparamsboughtfamousgooglelongeri++) {israelsayingdecidehome">headerensurebranchpiecesblock;statedtop">boston.test(avatartested_countforumsschemaindex,filledsharesreaderalert(appearSubmitline">body">
-* TheThoughseeingjerseyNews
-System DavidcancertablesprovedApril reallydriveritem">more">boardscolorscampusfirst || [];media.guitarfinishwidth:showedOther .php" assumelayerswilsonstoresreliefswedenCustomeasily your String
-
-Whiltaylorclear:resortfrenchthough") + "buyingbrandsMembername">oppingsector5px;">vspacepostermajor coffeemartinmaturehappenkansaslink">Images=falsewhile hspace0&
-
-In powerPolski-colorjordanBottomStart -count2.htmlnews">01.jpgOnline-rightmillerseniorISBN 00,000 guidesvalue)ectionrepair.xml" rights.html-blockregExp:hoverwithinvirginphones |
using
- var >');
-
-
-bahasabrasilgalegomagyarpolskisrpskiردو中文简体繁體信息中国我们一个公司管理论坛可以服务时间个人产品自己企业查看工作联系没有网站所有评论中心文章用户首页作者技术问题相关下载搜索使用软件在线主题资料视频回复注册网络收藏内容推荐市场消息空间发布什么好友生活图片发展如果手机新闻最新方式北京提供关于更多这个系统知道游戏广告其他发表安全第一会员进行点击版权电子世界设计免费教育加入活动他们商品博客现在上海如何已经留言详细社区登录本站需要价格支持国际链接国家建设朋友阅读法律位置经济选择这样当前分类排行因为交易最后音乐不能通过行业科技可能设备合作大家社会研究专业全部项目这里还是开始情况电脑文件品牌帮助文化资源大学学习地址浏览投资工程要求怎么时候功能主要目前资讯城市方法电影招聘声明任何健康数据美国汽车介绍但是交流生产所以电话显示一些单位人员分析地图旅游工具学生系列网友帖子密码频道控制地区基本全国网上重要第二喜欢进入友情这些考试发现培训以上政府成为环境香港同时娱乐发送一定开发作品标准欢迎解决地方一下以及责任或者客户代表积分女人数码销售出现离线应用列表不同编辑统计查询不要有关机构很多播放组织政策直接能力来源時間看到热门关键专区非常英语百度希望美女比较知识规定建议部门意见精彩日本提高发言方面基金处理权限影片银行还有分享物品经营添加专家这种话题起来业务公告记录简介质量男人影响引用报告部分快速咨询时尚注意申请学校应该历史只是返回购买名称为了成功说明供应孩子专题程序一般會員只有其它保护而且今天窗口动态状态特别认为必须更新小说我們作为媒体包括那么一样国内是否根据电视学院具有过程由于人才出来不过正在明星故事关系标题商务输入一直基础教学了解建筑结果全球通知计划对于艺术相册发生真的建立等级类型经验实现制作来自标签以下原创无法其中個人一切指南关闭集团第三关注因此照片深圳商业广州日期高级最近综合表示专辑行为交通评价觉得精华家庭完成感觉安装得到邮件制度食品虽然转载报价记者方案行政人民用品东西提出酒店然后付款热点以前完全发帖设置领导工业医院看看经典原因平台各种增加材料新增之后职业效果今年论文我国告诉版主修改参与打印快乐机械观点存在精神获得利用继续你们这么模式语言能够雅虎操作风格一起科学体育短信条件治疗运动产业会议导航先生联盟可是問題结构作用调查資料自动负责农业访问实施接受讨论那个反馈加强女性范围服務休闲今日客服觀看参加的话一点保证图书有效测试移动才能决定股票不断需求不得办法之间采用营销投诉目标爱情摄影有些複製文学机会数字装修购物农村全面精品其实事情水平提示上市谢谢普通教师上传类别歌曲拥有创新配件只要时代資訊达到人生订阅老师展示心理贴子網站主題自然级别简单改革那些来说打开代码删除证券节目重点次數多少规划资金找到以后大全主页最佳回答天下保障现代检查投票小时沒有正常甚至代理目录公开复制金融幸福版本形成准备行情回到思想怎样协议认证最好产生按照服装广东动漫采购新手组图面板参考政治容易天地努力人们升级速度人物调整流行造成文字韩国贸易开展相關表现影视如此美容大小报道条款心情许多法规家居书店连接立即举报技巧奥运登入以来理论事件自由中华办公妈妈真正不错全文合同价值别人监督具体世纪团队创业承担增长有人保持商家维修台湾左右股份答案实际电信经理生命宣传任务正式特色下来协会只能当然重新內容指导运行日志賣家超过土地浙江支付推出站长杭州执行制造之一推广现场描述变化传统歌手保险课程医疗经过过去之前收入年度杂志美丽最高登陆未来加工免责教程版块身体重庆出售成本形式土豆出價东方邮箱南京求职取得职位相信页面分钟网页确定图例网址积极错误目的宝贝机关风险授权病毒宠物除了評論疾病及时求购站点儿童每天中央认识每个天津字体台灣维护本页个性官方常见相机战略应当律师方便校园股市房屋栏目员工导致突然道具本网结合档案劳动另外美元引起改变第四会计說明隐私宝宝规范消费共同忘记体系带来名字發表开放加盟受到二手大量成人数量共享区域女孩原则所在结束通信超级配置当时优秀性感房产遊戲出口提交就业保健程度参数事业整个山东情感特殊分類搜尋属于门户财务声音及其财经坚持干部成立利益考虑成都包装用戶比赛文明招商完整真是眼睛伙伴威望领域卫生优惠論壇公共良好充分符合附件特点不可英文资产根本明显密碼公众民族更加享受同学启动适合原来问答本文美食绿色稳定终于生物供求搜狐力量严重永远写真有限竞争对象费用不好绝对十分促进点评影音优势不少欣赏并且有点方向全新信用设施形象资格突破随着重大于是毕业智能化工完美商城统一出版打造產品概况用于保留因素中國存储贴图最愛长期口价理财基地安排武汉里面创建天空首先完善驱动下面不再诚信意义阳光英国漂亮军事玩家群众农民即可名稱家具动画想到注明小学性能考研硬件观看清楚搞笑首頁黄金适用江苏真实主管阶段註冊翻译权利做好似乎通讯施工狀態也许环保培养概念大型机票理解匿名cuandoenviarmadridbuscariniciotiempoporquecuentaestadopuedenjuegoscontraestánnombretienenperfilmaneraamigosciudadcentroaunquepuedesdentroprimerpreciosegúnbuenosvolverpuntossemanahabíaagostonuevosunidoscarlosequiponiñosmuchosalgunacorreoimagenpartirarribamaríahombreempleoverdadcambiomuchasfueronpasadolíneaparecenuevascursosestabaquierolibroscuantoaccesomiguelvarioscuatrotienesgruposseráneuropamediosfrenteacercademásofertacochesmodeloitalialetrasalgúncompracualesexistecuerposiendoprensallegarviajesdineromurciapodrápuestodiariopuebloquieremanuelpropiocrisisciertoseguromuertefuentecerrargrandeefectopartesmedidapropiaofrecetierrae-mailvariasformasfuturoobjetoseguirriesgonormasmismosúnicocaminositiosrazóndebidopruebatoledoteníajesúsesperococinaorigentiendacientocádizhablarseríalatinafuerzaestiloguerraentraréxitolópezagendavídeoevitarpaginametrosjavierpadresfácilcabezaáreassalidaenvíojapónabusosbienestextosllevarpuedanfuertecomúnclaseshumanotenidobilbaounidadestáseditarcreadoдлячтокакилиэтовсеегопритакещеужеКакбезбылониВсеподЭтотомчемнетлетразонагдемнеДляПринаснихтемктогодвоттамСШАмаяЧтовасвамемуТакдванамэтиэтуВамтехпротутнаддняВоттринейВаснимсамтотрубОнимирнееОООлицэтаОнанемдоммойдвеоносудकेहैकीसेकाकोऔरपरनेएककिभीइसकरतोहोआपहीयहयातकथाjagranआजजोअबदोगईजागएहमइनवहयेथेथीघरजबदीकईजीवेनईनएहरउसमेकमवोलेसबमईदेओरआमबसभरबनचलमनआगसीलीعلىإلىهذاآخرعددالىهذهصورغيركانولابينعرضذلكهنايومقالعليانالكنحتىقبلوحةاخرفقطعبدركنإذاكمااحدإلافيهبعضكيفبحثومنوهوأناجدالهاسلمعندليسعبرصلىمنذبهاأنهمثلكنتالاحيثمصرشرححولوفياذالكلمرةانتالفأبوخاصأنتانهاليعضووقدابنخيربنتلكمشاءوهيابوقصصومارقمأحدنحنعدمرأياحةكتبدونيجبمنهتحتجهةسنةيتمكرةغزةنفسبيتللهلناتلكقلبلماعنهأولشيءنورأمافيكبكلذاترتببأنهمسانكبيعفقدحسنلهمشعرأهلشهرقطرطلبprofileservicedefaulthimselfdetailscontentsupportstartedmessagesuccessfashioncountryaccountcreatedstoriesresultsrunningprocesswritingobjectsvisiblewelcomearticleunknownnetworkcompanydynamicbrowserprivacyproblemServicerespectdisplayrequestreservewebsitehistoryfriendsoptionsworkingversionmillionchannelwindow.addressvisitedweathercorrectproductedirectforwardyou canremovedsubjectcontrolarchivecurrentreadinglibrarylimitedmanagerfurthersummarymachineminutesprivatecontextprogramsocietynumberswrittenenabledtriggersourcesloadingelementpartnerfinallyperfectmeaningsystemskeepingculture",journalprojectsurfaces"expiresreviewsbalanceEnglishContentthroughPlease opinioncontactaverageprimaryvillageSpanishgallerydeclinemeetingmissionpopularqualitymeasuregeneralspeciessessionsectionwriterscounterinitialreportsfiguresmembersholdingdisputeearlierexpressdigitalpictureAnothermarriedtrafficleadingchangedcentralvictoryimages/reasonsstudiesfeaturelistingmust beschoolsVersionusuallyepisodeplayinggrowingobviousoverlaypresentactions
-wrapperalreadycertainrealitystorageanotherdesktopofferedpatternunusualDigitalcapitalWebsitefailureconnectreducedAndroiddecadesregular & animalsreleaseAutomatgettingmethodsnothingPopularcaptionletterscapturesciencelicensechangesEngland=1&History = new CentralupdatedSpecialNetworkrequirecommentwarningCollegetoolbarremainsbecauseelectedDeutschfinanceworkersquicklybetweenexactlysettingdiseaseSocietyweaponsexhibit<!--Controlclassescoveredoutlineattacksdevices(windowpurposetitle="Mobile killingshowingItaliandroppedheavilyeffects-1']);
-confirmCurrentadvancesharingopeningdrawingbillionorderedGermanyrelatedincludewhetherdefinedSciencecatalogArticlebuttonslargestuniformjourneysidebarChicagoholidayGeneralpassage,"animatefeelingarrivedpassingnaturalroughly.
-
-The but notdensityBritainChineselack oftributeIreland" data-factorsreceivethat isLibraryhusbandin factaffairsCharlesradicalbroughtfindinglanding:lang="return leadersplannedpremiumpackageAmericaEdition]"Messageneed tovalue="complexlookingstationbelievesmaller-mobilerecordswant tokind ofFirefoxyou aresimilarstudiedmaximumheadingrapidlyclimatekingdomemergedamountsfoundedpioneerformuladynastyhow to SupportrevenueeconomyResultsbrothersoldierlargelycalling."AccountEdward segmentRobert effortsPacificlearnedup withheight:we haveAngelesnations_searchappliedacquiremassivegranted: falsetreatedbiggestbenefitdrivingStudiesminimumperhapsmorningsellingis usedreversevariant role="missingachievepromotestudentsomeoneextremerestorebottom:evolvedall thesitemapenglishway to AugustsymbolsCompanymattersmusicalagainstserving})();
-paymenttroubleconceptcompareparentsplayersregionsmonitor ''The winningexploreadaptedGalleryproduceabilityenhancecareers). The collectSearch ancientexistedfooter handlerprintedconsoleEasternexportswindowsChannelillegalneutralsuggest_headersigning.html">settledwesterncausing-webkitclaimedJusticechaptervictimsThomas mozillapromisepartieseditionoutside:false,hundredOlympic_buttonauthorsreachedchronicdemandssecondsprotectadoptedprepareneithergreatlygreateroverallimprovecommandspecialsearch.worshipfundingthoughthighestinsteadutilityquarterCulturetestingclearlyexposedBrowserliberal} catchProjectexamplehide();FloridaanswersallowedEmperordefenseseriousfreedomSeveral-buttonFurtherout of != nulltrainedDenmarkvoid(0)/all.jspreventRequestStephen
-
-When observe
-Modern provide" alt="borders.
-
-For
-
-Many artistspoweredperformfictiontype ofmedicalticketsopposedCouncilwitnessjusticeGeorge Belgium...twitternotablywaitingwarfare Other rankingphrasesmentionsurvivescholar
- Countryignoredloss ofjust asGeorgiastrange
- severalbecomesselect wedding00.htmlmonarchoff theteacherhighly biologylife ofor evenrise of»plusonehunting(thoughDouglasjoiningcirclesFor theAncientVietnamvehiclesuch ascrystalvalue =Windowsenjoyeda smallassumed