Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 2 locations

@@ 14925-14925 (lines=1) @@
14922
  return offset + 2
14923
}
14924
14925
function objectWriteUInt32 (buf, value, offset, littleEndian) {
14926
  if (value < 0) value = 0xffffffff + value + 1
14927
  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
14928
    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
@@ 14891-14891 (lines=1) @@
14888
  return offset + 1
14889
}
14890
14891
function objectWriteUInt16 (buf, value, offset, littleEndian) {
14892
  if (value < 0) value = 0xffff + value + 1
14893
  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
14894
    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>