| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3d68811 commit 44b1927
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ class LockManager { | |||
| 159 | 159 | signal.throwIfAborted(); | |
| 160 | 160 | } | |
| 161 | 161 | ||
| 162 | - if (name.startsWith('-')) { | ||
| 162 | + if (name[0] === '-') { | ||
| 163 | 163 | // If name starts with U+002D HYPHEN-MINUS (-), then reject promise with a | |
| 164 | 164 | // "NotSupportedError" DOMException. | |
| 165 | 165 | throw lazyDOMException('Lock name may not start with hyphen', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments