mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
fix: "can't redefine non-configurable property"
This commit is contained in:
parent
aa1b9d11dc
commit
18ae82174d
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user