[flutter_tools] add support for enable null safety asserts (#61114)

Enable null safety asserts for web debug mode. This induces runtime asserts at the boundaries between null safe and non-null safe libraries. Adds integration test that validates assertion error is thrown.

#61042
This commit is contained in:
Jonah Williams
2020-07-15 09:54:39 -07:00
committed by GitHub
parent 0a64b5b271
commit cb7770b3a5
6 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart=2.9
void methodThatAcceptsNonNull(int x) {
print(x + 2);
}