MCPcopy Index your code
hub / github.com/nodejs/node / getter

Function getter

deps/v8/test/mjsunit/es6/string-raw.js:269–279  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

267 };
268 }
269 function getter(name, value) {
270 return {
271 get: function() {
272 log.push("get" + name);
273 return value;
274 },
275 set: function(v) {
276 log.push("set" + name);
277 }
278 };
279 }
280 Object.defineProperties(subs, {
281 0: getter(0, stringify("a")),
282 1: getter(1, stringify("b")),

Callers 1

string-raw.jsFile · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…