give the option
This commit is contained in:
parent
89295fcbec
commit
a7fc9af7cd
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user