Chromium Code Reviews| Index: lib/compiler/implementation/lib/mock.dart |
| =================================================================== |
| --- lib/compiler/implementation/lib/mock.dart (revision 8394) |
| +++ lib/compiler/implementation/lib/mock.dart (working copy) |
| @@ -28,7 +28,9 @@ |
| // TODO(ahe): VM specfic exception? |
| class StaticResolutionException implements Exception {} |
| -void assert(condition) {} |
| +void assert(condition) { |
|
kasperl
2012/06/08 05:34:05
I think this needs a bit more work. Something like
ngeoffray
2012/06/08 09:40:58
Done.
|
| + if (condition !== true) throw new AssertionError(); |
| +} |
| // TODO(ahe): Not sure ByteArray belongs in the core library. |
| interface Uint8List extends List default _InternalByteArray { |