diff --git a/packages/svelte/src/compiler/parse/acorn-types.d.ts b/packages/svelte/src/compiler/parse/acorn-types.d.ts new file mode 100644 index 000000000000..d26761471ff2 --- /dev/null +++ b/packages/svelte/src/compiler/parse/acorn-types.d.ts @@ -0,0 +1,4 @@ +declare module 'acorn' { + export function isIdentifierStart(code: number, astral: boolean): boolean; + export function isIdentifierChar(code: number, astral: boolean): boolean; +} diff --git a/sites/svelte.dev/src/routes/(authed)/repl/[id]/embed/+page.server.js b/sites/svelte.dev/src/routes/(authed)/repl/[id]/embed/+page.server.js index 5d80a583f327..f9d55d084683 100644 --- a/sites/svelte.dev/src/routes/(authed)/repl/[id]/embed/+page.server.js +++ b/sites/svelte.dev/src/routes/(authed)/repl/[id]/embed/+page.server.js @@ -4,7 +4,7 @@ export async function load({ fetch, params, url }) { const res = await fetch(`/repl/api/${params.id}.json`); if (!res.ok) { - throw error(res.status); + throw error(/** @type {any} */ (res.status)); } const gist = await res.json();