Skip to content

Remove uses of .__proto__ from JS code  #2118

Closed
@annagrin

Description

@annagrin

We currently have a case where we call __proto__ to determine if the object is a plain JS object:

Use of __proto__ should be replaced by Object.getPrototypeOf(#)`. Or maybe we can use the object runtime metadata to determine its type?

See more information in dart-lang/sdk#52372

if (!(this.__proto__)) { return 'Instance of PlainJavaScriptObject';}

Metadata

Metadata

Assignees

Labels

P2A bug or feature request we're likely to work ontriaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions