assert not working on mac os x

I have created simple program in mac os x. Just set variable without any assignment and then check assert ( exist != null) but this statement fails, no any assertion.

Dart version:

Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on “macos_x64”

Thanks

Author: Fantashit

1 thought on “assert not working on mac os x

  1. Have you tried enabling the option --enable-asserts, i.e. dart --enable-asserts <dart-script-file.dart>?

Comments are closed.