Index: runtime/vm/debugger.cc |
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc |
index f5cdb79e765207608aad50126d4fe36c23dd7c64..dda7b345dbe296d018ef3a31c6cd0777924dbf3a 100644 |
--- a/runtime/vm/debugger.cc |
+++ b/runtime/vm/debugger.cc |
@@ -1057,7 +1057,7 @@ RawObject* ActivationFrame::Evaluate(const String& expr) { |
VariableAt(i, &name, &ignore, &ignore, &value); |
if (!name.Equals(Symbols::This())) { |
if (IsPrivateVariableName(name)) { |
- name = String::IdentifierPrettyName(name); |
+ name = String::ScrubName(name); |
} |
param_names.Add(name); |
param_values.Add(value); |
@@ -1130,7 +1130,7 @@ void ActivationFrame::PrintToJSONObject(JSONObject* jsobj, |
if (var_name.raw() != Symbols::AsyncOperation().raw()) { |
JSONObject jsvar(&jsvars); |
jsvar.AddProperty("type", "BoundVariable"); |
- var_name = String::IdentifierPrettyName(var_name); |
+ var_name = String::ScrubName(var_name); |
jsvar.AddProperty("name", var_name.ToCString()); |
jsvar.AddProperty("value", var_value, !full); |
// TODO(turnidge): Do we really want to provide this on every |