MCPcopy
hub / github.com/sveltejs/svelte / apply_adjustments

Function apply_adjustments

packages/svelte/src/internal/client/error-handling.js:110–122  ·  view source on GitHub ↗

* @param {Error} error

(error)

Source from the content-addressed store, hash-verified

108 * @param {Error} error
109 */
110function apply_adjustments(error) {
111 const adjusted = adjustments.get(error);
112
113 if (adjusted) {
114 define_property(error, 'message', {
115 value: adjusted.message
116 });
117
118 define_property(error, 'stack', {
119 value: adjusted.stack
120 });
121 }
122}

Callers 2

handle_errorFunction · 0.85
invoke_error_boundaryFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected