Skip to content

Missing NoSuchMethod errors when accessing deleted members #60100

@nshahan

Description

@nshahan

After deleting a field, getter, setter, method of any kind and hot reloading, any code that accesses those members should throw a NoSuchMethod. This could be from dynamic accesses or from code retained from earlier generations.

Related tests:

hot_reload/call_deleted_top_level_function
hot_reload/call_deleted_top_level_function_arity_change
hot_reload/change_instance_format2
hot_reload/delete_static_field
hot_reload/tear_off_remove

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.web-dev-compilerweb-hot-reloadIssues related to stateful hot reload on the web

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions