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

Function getter

deps/v8/test/mjsunit/json.js:286–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284var counter = 0;
285assertEquals('{"getter":123}',
286 JSON.stringify({ get getter() { counter++; return 123; } }));
287assertEquals(1, counter);
288assertEquals('{"getter":123}',
289 JSON.stringify({ get getter() { counter++; return 123; } },

Callers 2

testFunction · 0.70
do_uniqueFunction · 0.50

Calls

no outgoing calls

Tested by 1

testFunction · 0.56