mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 16:54:55 +00:00
274b4d3ecb
In kernel files assertion conditions are specified as a range of source positions. Sometimes source texts are not available and VM cannot extract assertion condition text, so Script::GetSnippet returns null. With null safety it is no longer valid to pass null as a non-nullable argument '_failedAssertion' of _AssertionError._create constructor, so we should provide a valid String. This change converts 'null' assertion condition text to "<optimized out>", similarly to AOT mode. Issue https://github.com/flutter/flutter/issues/63513 Issue https://github.com/dart-lang/sdk/issues/34586 Change-Id: I9c5791e98fdef358068f3f5ddc4cfe98e8c7ed36 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/158162 Reviewed-by: Régis Crelier <regis@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com> |
||
---|---|---|
.. | ||
bin | ||
docs | ||
include | ||
lib | ||
llvm_codegen | ||
observatory | ||
platform | ||
tests/vm | ||
third_party | ||
tools | ||
vm | ||
.clang-tidy | ||
.gitignore | ||
BUILD.gn | ||
codereview.settings | ||
configs.gni | ||
CPPLINT.cfg | ||
PRESUBMIT.py | ||
runtime_args.gni |