OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 class ConstHelper { | 5 class ConstHelper { |
6 static String getConstId(var o) native; | 6 static String getConstId(var o) native; |
7 | 7 |
8 static String getConstMapId(Map map) native { | 8 static String getConstMapId(Map map) native { |
9 StringBuffer sb = new StringBuffer(); | 9 StringBuffer sb = new StringBuffer(); |
10 sb.add("m"); | 10 sb.add("m"); |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 static NoSuchMethodException createNoSuchMethodException( | 35 static NoSuchMethodException createNoSuchMethodException( |
36 receiver, functionName, arguments) native { | 36 receiver, functionName, arguments) native { |
37 return new NoSuchMethodException(receiver, functionName, arguments); | 37 return new NoSuchMethodException(receiver, functionName, arguments); |
38 } | 38 } |
39 | 39 |
40 static TypeError createTypeError(String srcType, String dstType) native { | 40 static TypeError createTypeError(String srcType, String dstType) native { |
41 return new TypeError(srcType, dstType); | 41 return new TypeError(srcType, dstType); |
42 } | 42 } |
| 43 |
| 44 static AssertionError createAssertionError() native { |
| 45 return new AssertionError(); |
| 46 } |
43 } | 47 } |
44 | 48 |
45 class _CoreJsUtil { | 49 class _CoreJsUtil { |
46 static Map _newMapLiteral() native { | 50 static Map _newMapLiteral() native { |
47 return new LinkedHashMap(); | 51 return new LinkedHashMap(); |
48 } | 52 } |
49 } | 53 } |
50 | 54 |
OLD | NEW |