Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 5256) |
+++ src/objects.cc (working copy) |
@@ -1806,8 +1806,10 @@ |
} |
} |
+ HandleScope scope; |
+ Handle<Object> value_handle(value); |
Top::ReportFailedAccessCheck(this, v8::ACCESS_SET); |
- return value; |
+ return *value_handle; |
} |
@@ -6090,8 +6092,10 @@ |
// Check access rights if needed. |
if (IsAccessCheckNeeded() && |
!Top::MayIndexedAccess(this, index, v8::ACCESS_SET)) { |
+ HandleScope scope; |
+ Handle<Object> value_handle(value); |
Top::ReportFailedAccessCheck(this, v8::ACCESS_SET); |
- return value; |
+ return *value_handle; |
} |
if (IsJSGlobalProxy()) { |