mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-24 05:57:17 -04:00
Merge commit '85d3d7392ecfdc985fa8cc93e01846bec0f16dc4' into talk
This commit is contained in:
@@ -1229,8 +1229,9 @@ export function pure(value) {
|
||||
|
||||
export function isPattern(thing) {
|
||||
// thing?.constructor?.name !== 'Pattern' // <- this will fail when code is mangled
|
||||
const is = thing instanceof Pattern || thing._Pattern;
|
||||
if (!thing instanceof Pattern) {
|
||||
const is = thing instanceof Pattern || thing?._Pattern;
|
||||
|
||||
if (thing?._Pattern && !thing instanceof Pattern) {
|
||||
console.warn(
|
||||
`Found Pattern that fails "instanceof Pattern" check.
|
||||
This may happen if you are using multiple versions of @strudel.cycles/core.
|
||||
|
||||
Reference in New Issue
Block a user