diff options
Diffstat (limited to 'deps/v8/src/scopeinfo.cc')
-rw-r--r-- | deps/v8/src/scopeinfo.cc | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/deps/v8/src/scopeinfo.cc b/deps/v8/src/scopeinfo.cc index f1ae876ca3..03e69bf384 100644 --- a/deps/v8/src/scopeinfo.cc +++ b/deps/v8/src/scopeinfo.cc @@ -32,8 +32,6 @@ #include "scopeinfo.h" #include "scopes.h" -#include "allocation-inl.h" - namespace v8 { namespace internal { @@ -374,15 +372,14 @@ bool ScopeInfo::CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info, int end = start + local_count; for (int i = start; i < end; ++i) { int context_index = Context::MIN_CONTEXT_SLOTS + i - start; - RETURN_IF_EMPTY_HANDLE_VALUE( + Handle<Object> result = Runtime::SetObjectProperty( isolate, - SetProperty(isolate, - scope_object, - Handle<String>(String::cast(scope_info->get(i))), - Handle<Object>(context->get(context_index), isolate), - ::NONE, - kNonStrictMode), - false); + scope_object, + Handle<String>(String::cast(scope_info->get(i))), + Handle<Object>(context->get(context_index), isolate), + ::NONE, + kNonStrictMode); + RETURN_IF_EMPTY_HANDLE_VALUE(isolate, result, false); } return true; } |