Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: src/objects.cc

Issue 863693002: Use RETURN_ON_EXCEPTION rather than .Assert when setting .length, which may fail due to stack overf… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index e709720e2504531e6b19ef17585ddc2d3a9c9594..ecd9a9121b6890cae6b0b886d79a5f638e24da4b 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11654,9 +11654,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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698