| Index: lib/compiler/implementation/lib/mock.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/lib/mock.dart (revision 8424)
|
| +++ lib/compiler/implementation/lib/mock.dart (working copy)
|
| @@ -28,7 +28,10 @@
|
| // TODO(ahe): VM specfic exception?
|
| class StaticResolutionException implements Exception {}
|
|
|
| -void assert(condition) {}
|
| +void assert(condition) {
|
| + if (condition is Function) condition = condition();
|
| + if (!condition) throw new AssertionError();
|
| +}
|
|
|
| // TODO(ahe): Not sure ByteArray belongs in the core library.
|
| interface Uint8List extends List default _InternalByteArray {
|
|
|