| Index: tests/compiler/dart2js/mock_libraries.dart
|
| diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
|
| index 147be161a8a69235e7b00d44055c23e5cde5c781..734db25f3d4169d9a868caa4b8fc70ded0a2f5d6 100644
|
| --- a/tests/compiler/dart2js/mock_libraries.dart
|
| +++ b/tests/compiler/dart2js/mock_libraries.dart
|
| @@ -55,7 +55,12 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
|
| }''',
|
| 'Map': 'abstract class Map<K,V> {}',
|
| 'Null': 'class Null {}',
|
| - 'num': 'abstract class num {}',
|
| + 'num': r'''
|
| + abstract class num {
|
| + operator +(_);
|
| + operator *(_);
|
| + operator -();
|
| + }''',
|
| 'print': 'print(var obj) {}',
|
| 'proxy': 'const proxy = 0;',
|
| 'Object': r'''
|
| @@ -68,6 +73,7 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
|
| }''',
|
| 'StackTrace': 'abstract class StackTrace {}',
|
| 'String': 'class String implements Pattern {}',
|
| + 'Symbol': 'class Symbol { final name; const Symbol(this.name); }',
|
| 'Type': 'class Type {}',
|
| 'Pattern': 'abstract class Pattern {}',
|
| };
|
| @@ -116,9 +122,9 @@ const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{
|
| isStatic, jsArguments, name) {}''',
|
| 'computeSignature':
|
| 'computeSignature(var signature, var context, var contextName) {}',
|
| - 'ConstantMap': 'class ConstantMap {}',
|
| - 'ConstantProtoMap': 'class ConstantProtoMap {}',
|
| - 'ConstantStringMap': 'class ConstantStringMap {}',
|
| + 'ConstantMap': 'class ConstantMap<K, V> {}',
|
| + 'ConstantProtoMap': 'class ConstantProtoMap<K, V> {}',
|
| + 'ConstantStringMap': 'class ConstantStringMap<K, V> {}',
|
| 'copyTypeArguments': 'copyTypeArguments(source, target) {}',
|
| 'createInvocationMirror': 'createInvocationMirror(a0, a1, a2, a3, a4, a5) {}',
|
| 'createRuntimeType': 'createRuntimeType(a) {}',
|
|
|