give the option

This commit is contained in:
Chris Wanstrath 2025-11-03 16:46:07 -08:00
parent 89295fcbec
commit a7fc9af7cd

View File

@ -21,7 +21,7 @@ const HTML5_TAGS = [
] ]
export async function wrapAndRunCode(code: string, globals?: Record<string, any>): Promise<any> { export async function wrapAndRunCode(code: string, globals?: Record<string, any>): Promise<any> {
return await runCode("ribbit:\n " + code + "\nend", Object.assign({}, ribbitGlobals, globals)) return await runCode("ribbit do:\n " + code + "\nend", Object.assign({}, ribbitGlobals, globals))
} }
export const ribbitGlobals = { export const ribbitGlobals = {