mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-23 03:28:33 +00:00
fix: await injectPatternMethods
This commit is contained in:
parent
53af147ede
commit
16210e121f
@ -106,7 +106,7 @@ export function repl({
|
|||||||
const cpm = register('cpm', function (cpm, pat) {
|
const cpm = register('cpm', function (cpm, pat) {
|
||||||
return pat._fast(cpm / 60 / scheduler.cps);
|
return pat._fast(cpm / 60 / scheduler.cps);
|
||||||
});
|
});
|
||||||
evalScope({
|
return evalScope({
|
||||||
all,
|
all,
|
||||||
hush,
|
hush,
|
||||||
cpm,
|
cpm,
|
||||||
@ -123,7 +123,7 @@ export function repl({
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
updateState({ code, pending: true });
|
updateState({ code, pending: true });
|
||||||
injectPatternMethods();
|
await injectPatternMethods();
|
||||||
await beforeEval?.({ code });
|
await beforeEval?.({ code });
|
||||||
shouldHush && hush();
|
shouldHush && hush();
|
||||||
let { pattern, meta } = await _evaluate(code, transpiler);
|
let { pattern, meta } = await _evaluate(code, transpiler);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user