Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 34a47c5d00574cbf8eaf8d4c5a92edef4379f778..1da4f630380c69361029dccea9f69facf1ef3cf9 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1073,10 +1073,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) { |
AccessorPair::cast(dictionary->ValueAt(entry)); |
elms->set(IS_ACCESSOR_INDEX, heap->true_value()); |
if (CheckElementAccess(*obj, index, v8::ACCESS_GET)) { |
- elms->set(GETTER_INDEX, accessors->getter()); |
+ elms->set(GETTER_INDEX, accessors->SafeGet(ACCESSOR_GETTER)); |
} |
if (CheckElementAccess(*obj, index, v8::ACCESS_SET)) { |
- elms->set(SETTER_INDEX, accessors->setter()); |
+ elms->set(SETTER_INDEX, accessors->SafeGet(ACCESSOR_SETTER)); |
} |
break; |
} |
@@ -1123,10 +1123,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOwnProperty) { |
AccessorPair* accessors = AccessorPair::cast(result.GetCallbackObject()); |
if (CheckAccess(*obj, *name, &result, v8::ACCESS_GET)) { |
- elms->set(GETTER_INDEX, accessors->getter()); |
+ elms->set(GETTER_INDEX, accessors->SafeGet(ACCESSOR_GETTER)); |
} |
if (CheckAccess(*obj, *name, &result, v8::ACCESS_SET)) { |
- elms->set(SETTER_INDEX, accessors->setter()); |
+ elms->set(SETTER_INDEX, accessors->SafeGet(ACCESSOR_SETTER)); |
} |
} else { |
elms->set(IS_ACCESSOR_INDEX, heap->false_value()); |