Commit ba6e1746 authored by verwaest's avatar verwaest Committed by Commit bot

Use RETURN_ON_EXCEPTION rather than .Assert when setting .length, which may...

Use RETURN_ON_EXCEPTION rather than .Assert when setting .length, which may fail due to stack overflow.

BUG=449447
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#26170}
parent e26627e8
......@@ -11631,9 +11631,12 @@ MaybeHandle<Object> JSArray::SetElementsLength(
SLOPPY).Assert();
}
RETURN_ON_EXCEPTION(
isolate,
SetProperty(deleted, isolate->factory()->length_string(),
isolate->factory()->NewNumberFromUint(delete_count),
STRICT).Assert();
STRICT),
Object);
}
RETURN_ON_EXCEPTION(
......
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