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

Function getter

deps/v8/test/mjsunit/es6/templates.js:639–649  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

637 var subs = [];
638 var log = [];
639 function getter(name, value) {
640 return {
641 get: function() {
642 log.push("get" + name);
643 return value;
644 },
645 set: function(v) {
646 log.push("set" + name);
647 }
648 };
649 }
650 Object.defineProperties(subs, {
651 0: getter(0, "a"),
652 1: getter(1, "b"),

Callers 4

templates.jsFile · 0.70
checkExternRefTableFunction · 0.50
checkExternRefTableFunction · 0.50
checkExternRefTableFunction · 0.50

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected