Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart |
| =================================================================== |
| --- sdk/lib/_internal/compiler/implementation/lib/core_patch.dart (revision 16094) |
| +++ sdk/lib/_internal/compiler/implementation/lib/core_patch.dart (working copy) |
| @@ -213,6 +213,6 @@ |
| } |
| // Patch for 'identical' function. |
| -patch bool identical(Object a, Object b) { |
| - throw new Error('Should not reach the body of identical'); |
| -} |
| +// This is very magical: the compiler knows how to optimize a call to |
| +// identical, so we can just express identical in terms of itself. |
|
ahe
2012/12/14 08:40:39
Really?
|
| +patch bool identical(Object a, Object b) => identical(a, b); |