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}
This commit is contained in:
parent
e26627e8da
commit
ba6e1746e8
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user