Skip to content

worker: fix error imports and receiver check in Web Locks - #67717

Open
ychuhai wants to merge 1 commit into
nodejs:mainfrom
ychuhai:fix/web-locks-error-imports
Open

ychuhai wants to merge 1 commit into
nodejs:mainfrom
ychuhai:fix/web-locks-error-imports

Conversation

@ychuhai

@ychuhai ychuhai commented Nov 22, 2026

Copy link
Copy Markdown
Contributor
  • Import ERR_ILLEGAL_CONSTRUCTOR and ERR_INVALID_THIS from require('internal/errors').codes in lib/internal/locks.js (previously imported from require('internal/errors'), which resolved to undefined)
  • Add the missing this instanceof LockManager check in LockManager.prototype.request() per the Web Locks specification and WebIDL operation steps

@nodejs-github-bot nodejs-github-bot added locks Issues and PRs related to the Web Locks API. needs-ci PRs that need a full CI run. labels Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Node.js, and thank you for your first contribution!

Before review, please take a moment to read:

Please make sure every commit is signed off. For a first pull request, GitHub Actions require collaborator approval and Jenkins CI must be started by a collaborator or triager, so an initial wait is normal.

Signed-off-by: Yaroslav Chuhai <yaroslavchuhai@gmail.com>
@ychuhai
ychuhai force-pushed the fix/web-locks-error-imports branch from c8ee808 to f5b2edb Compare November 22, 2026 23:54
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.55%. Comparing base (db671bb) to head (f5b2edb).
⚠️ Report is 125 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67717      +/-   ##
==========================================
- Coverage   90.71%   90.55%   -0.16%     
==========================================
  Files         801      801              
  Lines      280917   284123    +3206     
  Branches    54237    54878     +641     
==========================================
+ Hits       254832   257286    +2454     
- Misses      16253    17003     +750     
- Partials     9832     9834       +2     
Files with missing lines Coverage Δ
lib/internal/locks.js 97.08% <100.00%> (+2.68%) ⬆️

... and 86 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gurgunday gurgunday added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Nov 23, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Nov 23, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. locks Issues and PRs related to the Web Locks API. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants