From 104f6f3b1743992a8c1ff5fb2d79affe5a3bfaf6 Mon Sep 17 00:00:00 2001 From: Ballard Date: Fri, 4 Aug 2023 12:39:48 -0400 Subject: [PATCH] intentionally add bug --- static/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/js/app.js b/static/js/app.js index 1999f66..3009c37 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -24,6 +24,12 @@ function optionChanged(selectedSubject) { */ function fillInfo(subjectID) { d3.json("data/samples.json").then((data) => { + + // Intentional bug + let arr = ["a", "b", "c"]; + let merged = arr.reduce(function(a, b) { + a.concat(b); + }); // Noncompliant: No return statement, will result in TypeError const metadataField = d3.select("#sample-metadata");