| Index: tests/compiler/dart2js/semantic_visitor_test_send_data.dart
|
| diff --git a/tests/compiler/dart2js/semantic_visitor_test_send_data.dart b/tests/compiler/dart2js/semantic_visitor_test_send_data.dart
|
| index c407766d961ff4e5ac0c9d5e9b5a37107fa1c0d7..8dc6e3d7f62c26afb2700b55f034d092bd5f1e55 100644
|
| --- a/tests/compiler/dart2js/semantic_visitor_test_send_data.dart
|
| +++ b/tests/compiler/dart2js/semantic_visitor_test_send_data.dart
|
| @@ -1742,11 +1742,19 @@ const Map<String, List<Test>> SEND_TESTS = const {
|
| // Assert
|
| const Test(
|
| '''
|
| - m() { assert(m()); }
|
| + m() { assert(false); }
|
| ''',
|
| - const Visit(VisitKind.VISIT_TOP_LEVEL_FUNCTION_INVOKE,
|
| - element: 'function(m)',
|
| - arguments: '()')),
|
| + const Visit(VisitKind.VISIT_ASSERT, expression: 'false')),
|
| + const Test(
|
| + '''
|
| + m() { assert(); }
|
| + ''',
|
| + const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '()')),
|
| + const Test(
|
| + '''
|
| + m() { assert(42, true); }
|
| + ''',
|
| + const Visit(VisitKind.ERROR_INVALID_ASSERT, arguments: '(42,true)')),
|
| ],
|
| 'Logical and': const [
|
| // Logical and
|
|
|