Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 12753-12753 (lines=1) @@
12750
12751
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
12752
// continuation byte.
12753
function utf8CheckByte(byte) {
12754
  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
12755
  return -1;
12756
}

node_modules/string_decoder/lib/string_decoder.js 1 location

@@ 116-116 (lines=1) @@
113
114
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
115
// continuation byte.
116
function utf8CheckByte(byte) {
117
  if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
118
  return -1;
119
}