/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
case"TRACING_TOGGLED": const { mutableTracingThreads } = state; const sizeBefore = mutableTracingThreads.size; if (action.enabled) {
mutableTracingThreads.add(action.thread);
} else {
mutableTracingThreads.delete(action.thread);
} // We may receive toggle events when we change the logging method // while we are already tracing, but the list of tracing thread stays the same. const changed = mutableTracingThreads.size != sizeBefore; if (changed) { return {
...state,
mutableTracingThreads,
};
} return state;
default: return state;
}
}
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.