tree: 0b79c40605d7ec6e9be81c70aa32078d060c6ce0 [path history] [tgz]
  1. lib/
  2. meta/
  3. analysis_options.yaml
  4. BUILD.gn
  5. OWNERS
  6. pubspec.yaml
  7. README.md
bin/crasher_dart/README.md

Utility program to simulate a Dart program throwing an unhandled exception, resulting in a Dart crash caught by the C++ Dart VM runner. The program can be run as follows:

$ run fuchsia-pkg://fuchsia.com/crasher_dart#meta/crasher_dart.cmx [<async|sync|exit>]
  • async throws an exception from an async function
  • sync throws an exception from a sync function
  • exit calls the disallowed io::exit() function