Commit c0144c0c authored by jkummerow's avatar jkummerow Committed by Commit bot

Fix has_pending_exception logic in API's Array::CloneElementAt

BUG=v8:4103
LOG=y
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/1138723003

Cr-Commit-Position: refs/heads/master@{#28477}
parent 8cb1c354
......@@ -6078,8 +6078,9 @@ MaybeLocal<Object> Array::CloneElementAt(Local<Context> context,
if (!paragon->IsJSObject()) return Local<Object>();
i::Handle<i::JSObject> paragon_handle(i::JSObject::cast(paragon));
Local<Object> result;
has_pending_exception = ToLocal<Object>(
isolate->factory()->CopyJSObject(paragon_handle), &result);
has_pending_exception =
!ToLocal<Object>(isolate->factory()->CopyJSObject(paragon_handle),
&result);
RETURN_ON_FAILED_EXECUTION(Object);
RETURN_ESCAPED(result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment