Skip to content

reflectClass on record type crashes VM #59863

@lrhn

Description

@lrhn

Example:

import "dart:mirrors";
typedef Rec = (int,);
void main() {
  reflectClass(Rec);
}

I know dart:mirrors are not really supported, but crashing with a segmentation fault seems a little harsher than necessary. Throwing UnuspportedError for unrecognized types seems safer than a native assertion failure.

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-mirrorstype-enhancementA request for a change that isn't a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions