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:
verwaest 2015-01-20 08:08:17 -08:00 committed by Commit bot
parent e26627e8da
commit ba6e1746e8

View File

@ -11631,9 +11631,12 @@ MaybeHandle<Object> JSArray::SetElementsLength(
SLOPPY).Assert();
}
SetProperty(deleted, isolate->factory()->length_string(),
isolate->factory()->NewNumberFromUint(delete_count),
STRICT).Assert();
RETURN_ON_EXCEPTION(
isolate,
SetProperty(deleted, isolate->factory()->length_string(),
isolate->factory()->NewNumberFromUint(delete_count),
STRICT),
Object);
}
RETURN_ON_EXCEPTION(