Fix console logging ability in setTimeout-if

Regression from e0fd9750d4
This commit is contained in:
Raymond Hill 2019-08-25 09:38:08 -04:00
parent 14e60f5e2d
commit e3043fadc7
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 2 additions and 2 deletions

View File

@ -543,7 +543,7 @@
} else { } else {
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
} }
const log = needleNot === false && needle === '.?' && const log = needleNot === false && needle === '' &&
delayNot === false && isNaN(delay) delayNot === false && isNaN(delay)
? console.log ? console.log
: undefined; : undefined;
@ -616,7 +616,7 @@
} else { } else {
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
} }
const log = needleNot === false && needle === '.?' && const log = needleNot === false && needle === '' &&
delayNot === false && isNaN(delay) delayNot === false && isNaN(delay)
? console.log ? console.log
: undefined; : undefined;