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

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 7fc0bd210315b96b2fd6ab55cfd2edd731801ff9..202ed8073368897cc3d6716b0a8d24814fafbc26 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 {}',
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/simple_inferrer_const_closure_default_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698