| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f70a2dd commit c9bd0c5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | const { | |
| 4 | 4 | ObjectDefineProperties, | |
| 5 | + StringPrototypeIndexOf, | ||
| 6 | + StringPrototypeSlice, | ||
| 5 | 7 | Symbol, | |
| 6 | 8 | } = primordials; | |
| 7 | 9 | ||
@@ -23,7 +25,7 @@ const nodeVersion = process.version; | |||
| 23 | 25 | class Navigator { | |
| 24 | 26 | // Private properties are used to avoid brand validations. | |
| 25 | 27 | #availableParallelism; | |
| 26 | - #userAgent = `Node.js/${nodeVersion.slice(1, nodeVersion.indexOf('.'))}`; | ||
| 28 | + #userAgent = `Node.js/${StringPrototypeSlice(nodeVersion, 1, StringPrototypeIndexOf(nodeVersion, '.'))}`; | ||
| 27 | 29 | ||
| 28 | 30 | constructor() { | |
| 29 | 31 | if (arguments[0] === kInitialize) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments