All files / src/internal/server errors.js

61.53% Statements 8/13
100% Branches 0/0
0% Functions 0/1
61.53% Lines 8/13

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 131x 1x 1x 1x 1x 1x 1x 1x          
/* This file is generated by scripts/process-messages/index.js. Do not edit! */
 
/**
 * `%name%(...)` is not available on the server
 * @param {string} name
 * @returns {never}
 */
export function lifecycle_function_unavailable(name) {
	const error = new Error(`lifecycle_function_unavailable\n\`${name}(...)\` is not available on the server`);

	error.name = 'Svelte error';
	throw error;
}