mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-26 04:58:27 +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() {
|
get() {
|
||||||
return this.p(i);
|
return this.p(i);
|
||||||
},
|
},
|
||||||
|
configurable: true,
|
||||||
});
|
});
|
||||||
Object.defineProperty(Pattern.prototype, `p${i}`, {
|
Object.defineProperty(Pattern.prototype, `p${i}`, {
|
||||||
get() {
|
get() {
|
||||||
return this.p(i);
|
return this.p(i);
|
||||||
},
|
},
|
||||||
|
configurable: true,
|
||||||
});
|
});
|
||||||
Pattern.prototype[`q${i}`] = silence;
|
Pattern.prototype[`q${i}`] = silence;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// already defined..
|
console.warn('injectPatternMethods: error:', err);
|
||||||
}
|
}
|
||||||
|
|
||||||
evalScope({
|
evalScope({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user