remove log

This commit is contained in:
Felix Roos 2022-11-03 14:57:46 +01:00
parent 5c2a8a68c0
commit 3033acadbb

View File

@ -1545,10 +1545,7 @@ export function pure(value) {
export function isPattern(thing) {
// thing?.constructor?.name !== 'Pattern' // <- this will fail when code is mangled
if (!thing) {
console.log('no thing', thing);
}
const is = thing instanceof Pattern || thing._Pattern;
const is = thing instanceof Pattern || thing?._Pattern;
if (!thing instanceof Pattern) {
console.warn(
`Found Pattern that fails "instanceof Pattern" check.