Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 1320673004: dart2js: Make functions that appear to be unreachable throw. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 4034d69c6cd0a189e1be931b74f6ebcbff31821b..68ee758f1c88f587f41822dd7b0752e8ad41fe1a 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -39,7 +39,10 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
static var NAN = 0;
static parse(s) {}
}''',
- 'Function': 'class Function {}',
+ 'Function': r'''
+ class Function {
+ static apply(Function fn, List positional, [Map named]) => null;
+ }''',
'identical': 'bool identical(Object a, Object b) { return true; }',
'int': 'abstract class int extends num { }',
'Iterable': 'abstract class Iterable {}',

Powered by Google App Engine
This is Rietveld 408576698