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

Function print

test/Errors.test.js:76–81  ·  test/Errors.test.js::print
(/** @type {string} */ val)

Source from the content-addressed store, hash-verified

74 return typeof val === class="st">"string";
75 },
76 print(/** @type {string} */ val) {
77 return `"${val
78 .replace(/\\/g, class="st">"/")
79 .replace(/class="st">"/g, '\\"')
80 .replace(/\r?\n/g, class="st">"\\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