Skip to content
Merged
Changes from 2 commits
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
3 changes: 2 additions & 1 deletion lib/internal/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +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 @@ -159,7 +160,7 @@
signal.throwIfAborted();
}

if (name.startsWith('-')) {
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