firefox-devtools / firefox-devtools/profiler
Allow ternary to reference marker fields in marker labels
Open
markers
profile data
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 491
- Avg merge
- 3d 46m
- Merged PRs (30d)
- 27
Description
While migrating `DebugBreakMarker`, I ran into the need to do this `{marker.data.msg ? marker.data.msg : marker.data.expr}` where `msg` and `expr` are both strings. We basically want to display `msg` unless it's empty or null, then we display `expr`.
https://bugzilla.mozilla.org/show_bug.cgi?id=2023960
https://phabricator.services.mozilla.com/D288218
┆Issue is synchronized with this [Jira Task](https://mozilla-hub.atlassian.net/browse/FP-1275)
Contributor guide
Assessment
This issue has not been assessed yet.