Merge branch 'main' into binary

This commit is contained in:
Luke Heerman 2024-12-27 15:15:54 -05:00
commit 8b909c54db
9 changed files with 157 additions and 3 deletions

View file

@ -92,7 +92,7 @@ export function repl({
// set pattern methods that use this repl via closure
const injectPatternMethods = () => {
Pattern.prototype.p = function (id) {
if (id.startsWith('_') || id.endsWith('_')) {
if (typeof id === 'string' && (id.startsWith('_') || id.endsWith('_'))) {
// allows muting a pattern x with x_ or _x
return silence;
}