Skip to content

Remove DartObject from the global JS namespace, remove interop.js #14627

Open
@justinfagnani

Description

DartObject pollutes the JavaScript namespace and creates a single proxy class for all Dart objects regardless of the isolate they originate from, potentially allowing Dart object to leak across isolates.

If we emit a DartObject function/prototype directly from dart2js it'll be accessible from dart:js without being in the global namespace.

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work onarea-webUse area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.library-jstype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)web-js-interopIssues that impact all js interop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions