Skip to content

dart2js: remove type test hooks from Object.prototype #9728

Closed
@rakudrama

Description

@rakudrama

dart2js places functions like

   $isFoo: function(){return false}

on Object.prototype. This happens when there are native classes so that type tests work on native classes, holders, raw objects and static functions. All these cases should be handled by other means - using classes instead of holders, or using interceptors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions