Skip to content

Window.requestFilesystem() call produces an error on dartdevk waek #44314

Open
@sgrekhov

Description

@sgrekhov

The following code produces an error on dartdevk-weak-linux-release-chrome configuration

import "dart:html";
main() async {
  Window nw = window;
  var fs = await nw.requestFileSystem(10);
}

Error message is not informative and looks like

Runtime window.onerror:
window.onerror called:

http://127.0.0.1:44241/root_build/gen/utils/dartdevc/kernel/amd/dart_sdk.js:4044:
Uncaught Error

Deobfuscated error and stack:
<no error message found>
    at window.onerror called:  unparsed
    at <fn>                    out/ReleaseX64/gen/utils/dartdevc/kernel/amd/dart_sdk.js 4044
    at Uncaught Error          unparsed

This code works well on dart2js configuration

Tested on the edge version of SDK (2.12)

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.dev-compiler-htmlweb-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