Commit df3aea2c authored by feng@chromium.org's avatar feng@chromium.org

Initialize the variable to a valid value.

Review URL: http://codereview.chromium.org/7826

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@541 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 42ef2c3d
......@@ -683,7 +683,7 @@ Handle<JSFunction> Factory::CreateApiFunction(
}
int instance_size = kPointerSize * internal_field_count;
InstanceType type;
InstanceType type = JS_OBJECT_TYPE; // initialize to a valid value
switch (instance_type) {
case JavaScriptObject:
type = JS_OBJECT_TYPE;
......
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