Code Duplication    Length = 1-1 lines in 2 locations

node_modules/mocha/mocha.js 1 location

@@ 5271-5271 (lines=1) @@
5268
 * @param {Array} globals
5269
 * @return {Array}
5270
 */
5271
function filterLeaks (ok, globals) {
5272
  return globals.filter(function (key) {
5273
    // Firefox and Chrome exposes iframes as index inside the window object
5274
    if (/^\d+/.test(key)) {

node_modules/mocha/lib/runner.js 1 location

@@ 923-923 (lines=1) @@
920
 * @param {Array} globals
921
 * @return {Array}
922
 */
923
function filterLeaks (ok, globals) {
924
  return globals.filter(function (key) {
925
    // Firefox and Chrome exposes iframes as index inside the window object
926
    if (/^\d+/.test(key)) {