Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 2390802777914bfe9b110c9e724b47a76f6bdb76..b0222f660f79d6adb3d8e75d3210133353bb96f6 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -4290,7 +4290,9 @@ Maybe<PropertyAttributes> JSObject::GetPropertyAttributesWithInterceptor( |
} |
if (!result.IsEmpty()) { |
DCHECK(result->IsInt32()); |
- return Just(static_cast<PropertyAttributes>(result->Int32Value())); |
+ return Just(static_cast<PropertyAttributes>( |
+ result->Int32Value(reinterpret_cast<v8::Isolate*>(isolate) |
+ ->GetCurrentContext()).FromJust())); |
} |
} else if (!interceptor->getter()->IsUndefined()) { |
// TODO(verwaest): Use GetPropertyWithInterceptor? |