fix corner case in inline (#4754)

fixes #4753
This commit is contained in:
Alex Lam S.L
2021-03-08 04:38:53 +00:00
committed by GitHub
parent e4848a7f5a
commit 077512d151
4 changed files with 99 additions and 24 deletions

View File

@@ -139,7 +139,7 @@ var AST_Node = DEFNODE("Node", "start end", {
}, null);
(AST_Node.log_function = function(fn, verbose) {
if (!fn) {
if (typeof fn != "function") {
AST_Node.info = AST_Node.warn = noop;
return;
}