(element, expression, value)
| 995 | } |
| 996 | |
| 997 | beepValueToConsole(element, expression, value) { |
| 998 | if (this.triggerEvent(element, "hyperscript:beep", {element, expression, value})) { |
| 999 | var typeName = !value ? "object (null)" |
| 1000 | : value instanceof ElementCollection ? "ElementCollection" |
| 1001 | : value.constructor?.name || "unknown"; |
| 1002 | var logValue = typeName === "String" ? '"' + value + '"' |
| 1003 | : value instanceof ElementCollection ? Array.from(value) |
| 1004 | : value; |
| 1005 | console.log("///_ BEEP! The expression (" + expression.sourceFor().replace("beep! ", "") + ") evaluates to:", logValue, "of type " + typeName); |
| 1006 | } |
| 1007 | } |
| 1008 | |
| 1009 | } |
no test coverage detected