Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'package:async_helper/async_helper.dart'; | |
| 6 import 'package:compiler/src/commandline_options.dart'; | |
| 7 import 'memory_compiler.dart'; | |
| 8 | |
| 9 const String SOURCE = ''' | |
| 10 main() { | |
| 11 assert(true, throw "unreachable"); | |
| 12 var list = []; | |
|
sra1
2016/11/26 22:41:20
I don't understand what this is testing.
Perhaps
Johnni Winther
2016/11/28 10:08:29
The crash reported in #27882. We had inconsistent
| |
| 13 } | |
| 14 '''; | |
| 15 | |
| 16 main() { | |
| 17 asyncTest(() async { | |
| 18 await runCompiler( | |
| 19 entryPoint: Uri.parse('memory:main.dart'), | |
| 20 memorySourceFiles: {'main.dart': SOURCE}, | |
| 21 options: [Flags.enableCheckedMode, Flags.enableAssertMessage]); | |
| 22 }); | |
| 23 } | |
| OLD | NEW |