| OLD | NEW |
| (Empty) | |
| 1 #library('dart2js_mirrors_test'); |
| 2 |
| 3 #import('dart:mirrors'); |
| 4 #import("../../../pkg/unittest/unittest.dart"); |
| 5 |
| 6 void main() { |
| 7 try { |
| 8 print(currentMirrorSystem()); |
| 9 fail("UnsupportedOperationException expected"); |
| 10 } on UnsupportedOperationException catch (e) { |
| 11 print(e); |
| 12 } |
| 13 try { |
| 14 print(mirrorSystemOf(null)); |
| 15 fail("UnsupportedOperationException expected"); |
| 16 } on UnsupportedOperationException catch (e) { |
| 17 print(e); |
| 18 } |
| 19 try { |
| 20 print(reflect(null)); |
| 21 fail("UnsupportedOperationException expected"); |
| 22 } on UnsupportedOperationException catch (e) { |
| 23 print(e); |
| 24 } |
| 25 } |
| OLD | NEW |