Skip to content

Remove source mapping from async methods #44374

Open
@nshahan

Description

@nshahan

If we remove the source map information from the outer function of the generated code below it would potentially avoid showing the redundant stack frames when debugging with Dart DevTools.

Dart:

foo() async => bar();

Generated JavaScript:

  module.foo = function foo() { // (1)
    return async.async(dart.dynamic, function* foo() { // (2)
      return yield bar.bar();
    });
  };

We need to be careful that we don't drastically regress debugging in chrome devtools in the process.

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dev-compilerweb-triage-1priority assigned

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions