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
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants