fix mini notation multiline highlight

+ started operator overloading
This commit is contained in:
Felix Roos 2022-02-21 00:57:17 +01:00
parent 26fe6c8f61
commit 3b248ae94c
3 changed files with 64 additions and 18 deletions

View file

@ -32,6 +32,7 @@ Object.assign(globalThis, bootstrapped, Tone, toneHelpers);
export const evaluate: any = (code: string) => {
const shapeshifted = shapeshifter(code); // transform syntactically correct js code to semantically usable code
// console.log('shapeshifted', shapeshifted);
let evaluated = eval(shapeshifted);
if (typeof evaluated === 'function') {
evaluated = evaluated();