diff options
Diffstat (limited to 'deps/v8/src/accessors.cc')
-rw-r--r-- | deps/v8/src/accessors.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/accessors.cc b/deps/v8/src/accessors.cc index 56cf13598..5a029285e 100644 --- a/deps/v8/src/accessors.cc +++ b/deps/v8/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()); } |