Commit 958963c5 authored by bradnelson@google.com's avatar bradnelson@google.com

Clone of http://codereview.chromium.org/8372020/

Committing for krasin@chromium.org
Review URL: http://codereview.chromium.org/8379007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106935 0039d316-1c4b-4281-b951-d872f2087c98
parent 70c334bc
......@@ -158,6 +158,9 @@ bool Var::operator==(const Var& other) const {
if (var_.value.as_id == other.var_.value.as_id)
return true;
return AsString() == other.AsString();
case PP_VARTYPE_OBJECT:
case PP_VARTYPE_ARRAY:
case PP_VARTYPE_DICTIONARY:
default: // Objects, arrays, dictionaries.
return var_.value.as_id == other.var_.value.as_id;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment