Skip to content

Commit 46f2449

Browse files
authored
bench: fix array creation in benchmark
1 parent 9244319 commit 46f2449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const suite = new Benchmark.Suite()
55
const stringify = require('.').configure({ deterministic: true })
66

77
// eslint-disable-next-line
8-
const array = Array({ length: 10 }, (_, i) => i)
8+
const array = Array.from({ length: 10 }, (_, i) => i)
99
const obj = { array }
1010
const circ = JSON.parse(JSON.stringify(obj))
1111
circ.o = { obj: circ, array }

0 commit comments

Comments
 (0)