Index: runtime/lib/mirrors.cc |
diff --git a/runtime/lib/mirrors.cc b/runtime/lib/mirrors.cc |
index 10b39cefce59c2a4bf1f3d55409179b763b40705..e1d5ba9674dfab02b2ea114d982e37fb56d057d4 100644 |
--- a/runtime/lib/mirrors.cc |
+++ b/runtime/lib/mirrors.cc |
@@ -270,7 +270,7 @@ static RawInstance* CreateMethodMirror(const Function& func, |
args.SetAt(0, MirrorReference::Handle(MirrorReference::New(func))); |
String& name = String::Handle(func.name()); |
- name = String::IdentifierPrettyNameRetainPrivate(name); |
+ name = String::ScrubNameRetainPrivate(name); |
args.SetAt(1, name); |
args.SetAt(2, owner_mirror); |
args.SetAt(3, instantiator); |