Skip to content

Allow ternary to reference marker fields in marker labels #5992

@carverdamien

Description

@carverdamien

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions