Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index 4f94f24a7ac0c2d0d0d9b6e66f5fa442dfa01c28..556f9745dafae7df16d031e936ff0ceba8ac3417 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -585,7 +585,8 @@ RUNTIME_FUNCTION(Runtime_DeleteProperty) { |
CONVERT_LANGUAGE_MODE_ARG_CHECKED(language_mode, 2); |
Handle<Object> result; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, JSReceiver::DeleteProperty(object, key, language_mode)); |
+ isolate, result, |
+ JSReceiver::DeletePropertyOrElement(object, key, language_mode)); |
return *result; |
} |