Detection of support for custom formatters doesn't work
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Riproduci il problema con le istruzioni window.devtoolsFormatters e console.log mostrate nel report, usando Chrome o Firefox. Individua il meccanismo di rilevamento che applica un formatter personalizzato durante il logging e segui come determina il supporto. È concluso quando il rilevamento non segnala più i formatter personalizzati come non supportati o disabilitati quando la formattazione degli oggetti è disponibile.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi,
The mechanism used to detect support for custom formatters doesn't work. It will always report that custom formatters are not supported or that support is disabled. This is due to the fact that the detection mechanism relies on the application of a custom formatter when strings are logged to the console. However, custom formatters are not applied when logging strings. They are only applied when logging objects.
Executing the following statements in the console will demonstrate this:
window.devtoolsFormatters = [{"header": () => {console.count("formatter"); return null;}}]
console.log("string")
console.log({})
You'll see that the counter "formatter" is only increased once, when the last statement is executed. I see the same behavior using both Chrome and Firefox.
- Lingua principale
- Clojure
- Stelle
- 1.1k
- Fork
- 51
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di binaryage/cljs-devtools
-
ROOK Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
binaryage/cljs-devtools#82 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
binaryage/cljs-devtools#81 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
binaryage/cljs-devtools#79 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
binaryage/cljs-devtools#76 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
binaryage/cljs-devtools#71 · 1 commento · 3 reazioni ·
Tutte le issue di binaryage/cljs-devtools
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
clojure-emacs/cider#4203 ·
-
.Team/QueryingPlatform Priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
clj-commons/antq#329 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100