Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 5c6c7ef00db04b90f82ff4f8c1057602f53a0986..02998f9b8ee9f1d0d210c80ff9add4117762be3a 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -527,7 +527,9 @@ MaybeObject* Accessors::FunctionGetLength(Object* object, void*) { |
// correctly yet. Compile it now and return the right length. |
HandleScope scope; |
Handle<JSFunction> handle(function); |
- if (!CompileLazy(handle, KEEP_EXCEPTION)) return Failure::Exception(); |
+ if (!JSFunction::CompileLazy(handle, KEEP_EXCEPTION)) { |
+ return Failure::Exception(); |
+ } |
return Smi::FromInt(handle->shared()->length()); |
} else { |
return Smi::FromInt(function->shared()->length()); |