Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ setupArrayMap
Function
setupArrayMap
deps/v8/test/js-perf-test/ObjectFreeze/array-map.js:5–11 ·
view source on GitHub ↗
(length)
Source
from the content-addressed store, hash-verified
3
// found in the LICENSE file.
4
5
function
setupArrayMap(length) {
6
var
a =
new
Array(length);
7
for
(
var
i=0;i<length;i++) {
8
a[i] =
''
+i;
9
}
10
return
Object.freeze(a);
11
}
12
13
const
frozenArrayMap = setupArrayMap(200);
14
Callers
1
array-map.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected