syntheticpp/dartruntime — pull request #7 by Ladicek (2012-04-08 13:30:52+00:00)
Title: Cmake mirrors fix

The cmake build didn't include the mirrors implementation library, so that even this tiny program (which is almost identical to tests/vm/src/IsolateMirrorSelfTest.dart) doesn't run:

#import('dart:mirrors');
#import('dart:isolate', prefix: 'isolate');

main() {
var sp = isolate.port.toSendPort();
isolateMirrorOf(sp).then( (im) {
print("This is ${im.debugName}");
isolate.port.close();
});
}

It prints this error:

'dart:mirrors': Error: line 17 pos 10: identifier '_Mirrors@2649f3a3' is not declared in this scope
return _Mirrors.isolateMirrorOf(port);

This commit fixes it.