MCPcopy
hub / github.com/webpack/webpack / print

Function print

test/Errors.test.js:76–81  ·  view source on GitHub ↗
(/** @type {string} */ val)

Source from the content-addressed store, hash-verified

74 return typeof val === "string";
75 },
76 print(/** @type {string} */ val) {
77 return `"${val
78 .replace(/\\/g, "/")
79 .replace(/"/g, '\\"')
80 .replace(/\r?\n/g, "\\n")}"`;
81 }
82 }
83 ]
84};

Callers

nothing calls this directly

Calls 3

cleanErrorFunction · 0.85
serializeFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected