Index: ppapi/cpp/var.cc |
diff --git a/ppapi/cpp/var.cc b/ppapi/cpp/var.cc |
index 09a8fe38f68998e9e393a2e554bfe32b288dc2f5..1108e05ef46488ced290cef1d8f6ee7ae366fcf2 100644 |
--- a/ppapi/cpp/var.cc |
+++ b/ppapi/cpp/var.cc |
@@ -241,10 +241,16 @@ std::string Var::DebugString() const { |
str.append("..."); |
} |
snprintf(buf, sizeof(buf), format, str.c_str()); |
- } else if (is_array_buffer()) { |
- snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)"); |
} else if (is_object()) { |
snprintf(buf, sizeof(buf), "Var(OBJECT)"); |
+ } else if (is_array()) { |
+ snprintf(buf, sizeof(buf), "Var(ARRAY)"); |
+ } else if (is_dictionary()) { |
+ snprintf(buf, sizeof(buf), "Var(DICTIONARY)"); |
+ } else if (is_array_buffer()) { |
+ snprintf(buf, sizeof(buf), "Var(ARRAY_BUFFER)"); |
+ } else { |
+ buf[0] = '\0'; |
} |
return buf; |
} |