Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 38be3ec8bf15e8a750e53c313b549a77cc1864e5..c9dbb1b020be768cb79c123aaef1786457b0eb04 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1500,12 +1500,10 @@ BUILTIN(ReflectDeleteProperty) { |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, name, |
Object::ToName(isolate, key)); |
- Handle<Object> result; |
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
- isolate, result, JSReceiver::DeletePropertyOrElement( |
- Handle<JSReceiver>::cast(target), name)); |
- |
- return *result; |
+ Maybe<bool> result = JSReceiver::DeletePropertyOrElement( |
+ Handle<JSReceiver>::cast(target), name, SLOPPY); |
+ MAYBE_RETURN(result, isolate->heap()->exception()); |
+ return *isolate->factory()->ToBoolean(result.FromJust()); |
} |