Skip to content

dart:js_interop's importModule should support TrustedTypes API #55429

@eyebrowsoffire

Description

@eyebrowsoffire

dart:js_interop exposes a importModule API, which does a dynamic import of an ES module.

However, importModule takes a String as the parameter which makes it incompatible with the TrustedTypes API. Basically, TrustedTypes essentially allows the URL to either be a string, or a TrustedScriptURL. So in order for this to actually be supported, importModule probably should take a JSAny.

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-js-interopIssues that impact all js interop

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions