Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 56cf135981a08828a1f847dfd5c4536bf58697de..5a029285e85fc16dfa95c9f8b7f34793e82b0ec1 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -493,11 +493,11 @@ Object* Accessors::FunctionGetLength(Object* object, void*) { |
// If the function isn't compiled yet, the length is not computed |
// correctly yet. Compile it now and return the right length. |
HandleScope scope; |
- Handle<JSFunction> function_handle(function); |
- if (!CompileLazy(function_handle, KEEP_EXCEPTION)) { |
+ Handle<SharedFunctionInfo> shared(function->shared()); |
+ if (!CompileLazyShared(shared, KEEP_EXCEPTION)) { |
return Failure::Exception(); |
} |
- return Smi::FromInt(function_handle->shared()->length()); |
+ return Smi::FromInt(shared->length()); |
} else { |
return Smi::FromInt(function->shared()->length()); |
} |