We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ead22 commit 7176d5aCopy full SHA for 7176d5a
lib/internal/locks.js
@@ -160,7 +160,7 @@ class LockManager {
160
signal.throwIfAborted();
161
}
162
163
- if (StringPrototypeStartsWith(name, '-')) {
+ if (name[0] === '-') {
164
// If name starts with U+002D HYPHEN-MINUS (-), then reject promise with a
165
// "NotSupportedError" DOMException.
166
throw lazyDOMException('Lock name may not start with hyphen',
0 commit comments