remove log
This commit is contained in:
parent
5c2a8a68c0
commit
3033acadbb
1 changed files with 1 additions and 4 deletions
|
|
@ -1545,10 +1545,7 @@ export function pure(value) {
|
||||||
|
|
||||||
export function isPattern(thing) {
|
export function isPattern(thing) {
|
||||||
// thing?.constructor?.name !== 'Pattern' // <- this will fail when code is mangled
|
// thing?.constructor?.name !== 'Pattern' // <- this will fail when code is mangled
|
||||||
if (!thing) {
|
const is = thing instanceof Pattern || thing?._Pattern;
|
||||||
console.log('no thing', thing);
|
|
||||||
}
|
|
||||||
const is = thing instanceof Pattern || thing._Pattern;
|
|
||||||
if (!thing instanceof Pattern) {
|
if (!thing instanceof Pattern) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`Found Pattern that fails "instanceof Pattern" check.
|
`Found Pattern that fails "instanceof Pattern" check.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue