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

Unified Diff: src/runtime/runtime-internal.cc

Issue 2357433002: Revert of [crankshaft] Protect against deopt loops from string length overflows. (Closed)
Patch Set: Created 4 years, 3 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 | « src/isolate-inl.h ('k') | test/mjsunit/regress/regress-5404.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-internal.cc
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
index aa4675b713851260cc901d1d4b5a7abd3605bd0c..a094d938d094d5f56d47f237a8bf05fee86df5bb 100644
--- a/src/runtime/runtime-internal.cc
+++ b/src/runtime/runtime-internal.cc
@@ -234,7 +234,8 @@
RUNTIME_FUNCTION(Runtime_ThrowInvalidStringLength) {
HandleScope scope(isolate);
- THROW_NEW_ERROR_RETURN_FAILURE(isolate, NewInvalidStringLengthError());
+ THROW_NEW_ERROR_RETURN_FAILURE(
+ isolate, NewRangeError(MessageTemplate::kInvalidStringLength));
}
RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
« no previous file with comments | « src/isolate-inl.h ('k') | test/mjsunit/regress/regress-5404.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698