mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
fix: await injectPatternMethods
This commit is contained in:
@@ -106,7 +106,7 @@ export function repl({
|
||||
const cpm = register('cpm', function (cpm, pat) {
|
||||
return pat._fast(cpm / 60 / scheduler.cps);
|
||||
});
|
||||
evalScope({
|
||||
return evalScope({
|
||||
all,
|
||||
hush,
|
||||
cpm,
|
||||
@@ -123,7 +123,7 @@ export function repl({
|
||||
}
|
||||
try {
|
||||
updateState({ code, pending: true });
|
||||
injectPatternMethods();
|
||||
await injectPatternMethods();
|
||||
await beforeEval?.({ code });
|
||||
shouldHush && hush();
|
||||
let { pattern, meta } = await _evaluate(code, transpiler);
|
||||
|
||||
Reference in New Issue
Block a user