Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 76ec11831fce23952679b26c353fa7348af16def..7a9d72515c328b4adf9ecbe2269d7b23b5c89cf2 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -901,7 +901,7 @@ MaybeObject* Accessors::FunctionGetLength(Isolate* isolate, |
if (Compiler::EnsureCompiled(function_handle, KEEP_EXCEPTION)) { |
return Smi::FromInt(function_handle->shared()->length()); |
} |
- return Failure::Exception(); |
+ return isolate->heap()->exception(); |
} |