Reviewers: Jakob,
Description:
Fix stupidity
[email protected]
BUG=
Please review this at https://codereview.chromium.org/18801004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/objects.cc
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index
7241126d7626618003d50470b10d1062baa3e4c8..3a60a322a139ad3c495423cb05ca4581bd3662f3
100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -15850,8 +15850,8 @@ MaybeObject*
PropertyCell::SetValueInferType(Object* value,
&PropertyCell::UpdateType,
Handle<PropertyCell>(this),
Handle<Object>(value, GetIsolate()));
- Type* new_type;
- if (maybe_type->To(&new_type)) return maybe_type;
+ Type* new_type = NULL;
+ if (!maybe_type->To(&new_type)) return maybe_type;
set_type(new_type);
}
return value;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.