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 2e9341f commit 0c4638bCopy full SHA for 0c4638b
lib/bytesToUuid.js
@@ -11,14 +11,16 @@ function bytesToUuid(buf, offset) {
11
var i = offset || 0;
12
var bth = byteToHex;
13
// join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4
14
- return ([bth[buf[i++]], bth[buf[i++]],
15
- bth[buf[i++]], bth[buf[i++]], '-',
16
17
18
19
- bth[buf[i++]], bth[buf[i++]],
20
21
- bth[buf[i++]], bth[buf[i++]]]).join('');
+ return ([
+ bth[buf[i++]], bth[buf[i++]],
+ bth[buf[i++]], bth[buf[i++]], '-',
22
+ bth[buf[i++]], bth[buf[i++]]
23
+ ]).join('');
24
}
25
26
module.exports = bytesToUuid;
0 commit comments