Skip to content

VM crash - sending the same function twice in a message fails. #22778

Closed
@lrhn

Description

@lrhn

Example code:
  import "dart:isolate";
  func(){}
  main() {
    var r = new RawReceivePort();
    r.handler = (v) {
      print(v[0] == v[1]);
      r.close();
    };
    r.sendPort.send([func, func]);
  }

This prints:
runtime/vm/object.h:4781: error: Handle check failed: saw Function 'main': static. expected Instance
Aborted (core dumped)

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions