MCPcopy Create free account
hub / github.com/nodejs/node / createObjectWithFunctionInArray

Function createObjectWithFunctionInArray

deps/v8/test/mjsunit/object-in-array.js:185–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183// Similarly, function-valued properties are handled outside.
184{
185 function createObjectWithFunctionInArray() {
186 return [{a: function() { return 0; }}];
187 }
188 const o1 = createObjectWithFunctionInArray();
189 const o2 = createObjectWithFunctionInArray();
190 assertNotSame(o1[0].a, o2[0].a);

Callers 1

object-in-array.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected