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

Function serializeJavascriptValueToJSONString

deps/undici/undici.js:4330–4337  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4328 }
4329 __name(removeChars, "removeChars");
4330 function serializeJavascriptValueToJSONString(value) {
4331 const result = JSON.stringify(value);
4332 if (result === void 0) {
4333 throw new TypeError("Value is not JSON serializable");
4334 }
4335 assert(typeof result === "string");
4336 return result;
4337 }
4338 __name(serializeJavascriptValueToJSONString, "serializeJavascriptValueToJSONString");
4339 module2.exports = {
4340 collectASequenceOfCodePoints,

Callers 1

jsonMethod · 0.70

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected