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

Function lengthReviver

deps/v8/test/mjsunit/harmony/json-parse-with-source.js:110–114  ·  view source on GitHub ↗
(key, value, context)

Source from the content-addressed store, hash-verified

108})();
109
110function lengthReviver(key, value, context) {
111 if (key == '') return value;
112 if (context === undefined) return 'undefined';
113 return context.source.length;
114}
115
116(function TestContext() {
117 const stringify = JSON.stringify;

Callers 2

arrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected