Skip to content

sky_engine reexports dart libraries that have missing _embedder.yaml mappings #54793

Closed
@jcollins-g

Description

@jcollins-g

@Hixie @stereotype441

I first saw this while debugging dart-lang/dartdoc#2143. The example I found is in dart:html, whose source code is copied directly from: https://github.com/dart-lang/sdk/blob/master/sdk/lib/html/dart2js/html_dart2js.dart. It reexports promiseToFuture from dart:html_common, which isn't available in sky_engine.

I do not understand how Flutter can possibly work under these conditions (Why are there no compilation errors? Why are all analysis errors here always squelched?) but it clearly does.... so I'm filing this issue in part to ask:

  1. Is this an actual problem (meaning, it is a bug that all of our tools seem to ignore this situation), or are situations like this considered "normal"?
  2. If it isn't a problem, is ignoring this situation in tools the correct way to handle it? Or should we be working around this in a different way?

For example, a combination of factors tend to result in dartdoc and the analyzer ignoring this under most circumstances and just silently hiding things. You'll notice that in the documentation for dart:html at https://api.dart.dev/dev/2.8.0-dev.20.0/dart-html/dart-html-library.html includes promiseToFuture, but https://api.flutter.dev/flutter/dart-html/dart-html-library.html does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineflutter/engine repository. See also e: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions