Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
kimtaejin3 and ljharb authored Jan 24, 2026
commit 7176d5acfc2560ba1032385ab4f04fde0c719aa3
2 changes: 1 addition & 1 deletion lib/internal/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
PromisePrototypeThen,
PromiseResolve,
SafePromisePrototypeFinally,
StringPrototypeStartsWith,

Check failure on line 9 in lib/internal/locks.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'StringPrototypeStartsWith' is assigned a value but never used
Comment thread
kimtaejin3 marked this conversation as resolved.
Outdated
Symbol,
SymbolToStringTag,
} = primordials;
Expand Down Expand Up @@ -160,7 +160,7 @@
signal.throwIfAborted();
}

if (StringPrototypeStartsWith(name, '-')) {
if (name[0] === '-') {
// If name starts with U+002D HYPHEN-MINUS (-), then reject promise with a
// "NotSupportedError" DOMException.
throw lazyDOMException('Lock name may not start with hyphen',
Expand Down
Loading