Skip to content

Chained conditions off by a line in DDC sourcemaps #41310

Open
@Markzipan

Description

@Markzipan

Repro:

var notNullBool = false;
var nullBool;
var otherBool = true;

void main() {
  bool calculate() => 
    otherBool && 
    notNullBool || 
    nullBool;

  print(calculate());
}

Points at the line containing notNullBool instead of nullBool.

See: b/152990150

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dev-compiler-uxweb-dev-compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions