mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-04 14:51:26 -04:00
fix: "can't redefine non-configurable property"
This commit is contained in:
@@ -88,16 +88,18 @@ export function repl({
|
||||
get() {
|
||||
return this.p(i);
|
||||
},
|
||||
configurable: true,
|
||||
});
|
||||
Object.defineProperty(Pattern.prototype, `p${i}`, {
|
||||
get() {
|
||||
return this.p(i);
|
||||
},
|
||||
configurable: true,
|
||||
});
|
||||
Pattern.prototype[`q${i}`] = silence;
|
||||
}
|
||||
} catch (err) {
|
||||
// already defined..
|
||||
console.warn('injectPatternMethods: error:', err);
|
||||
}
|
||||
|
||||
evalScope({
|
||||
|
||||
Reference in New Issue
Block a user