aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/array-map.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'bench/snippets/array-map.mjs')
-rw-r--r--bench/snippets/array-map.mjs2
1 files changed, 2 insertions, 0 deletions
diff --git a/bench/snippets/array-map.mjs b/bench/snippets/array-map.mjs
index 56f0cc3c3..2b6f4f669 100644
--- a/bench/snippets/array-map.mjs
+++ b/bench/snippets/array-map.mjs
@@ -1,6 +1,8 @@
// https://github.com/oven-sh/bun/issues/1096
import { bench, run } from "mitata";
+const identity = (x) => x;
+
for (let i = 0; i < 20; i++) {
var array = new Array(i);
for (let j = 0; j < i; j++) {