pull/17004/head
Rich Harris 4 weeks ago
parent 8285fc6c4f
commit de02329053

@ -229,6 +229,22 @@ export function effect_update_depth_exceeded() {
}
}
/**
* Cannot use `fork(...)` unless the `experimental.async` compiler option is `true`
* @returns {never}
*/
export function experimental_async_fork() {
if (DEV) {
const error = new Error(`experimental_async_fork\nCannot use \`fork(...)\` unless the \`experimental.async\` compiler option is \`true\`\nhttps://svelte.dev/e/experimental_async_fork`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/experimental_async_fork`);
}
}
/**
* Cannot use `flushSync` inside an effect
* @returns {never}
@ -439,20 +455,4 @@ export function svelte_boundary_reset_onerror() {
} else {
throw new Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`);
}
}
/**
* Cannot use `fork(...)` unless the `experimental.async` compiler option is `true`
* @returns {never}
*/
export function experimental_async_fork() {
if (DEV) {
const error = new Error(`experimental_async_fork\nCannot use \`fork(...)\` unless the \`experimental.async\` compiler option is \`true\`\nhttps://svelte.dev/e/experimental_async_fork`);
error.name = 'Svelte error';
throw error;
} else {
throw new Error(`https://svelte.dev/e/experimental_async_fork`);
}
}
Loading…
Cancel
Save