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

Unified Diff: src/ast.cc

Issue 207613005: No longer OOM on invalid string length. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 086d0153623dd4b33c3749f424f4dfdc46c7b56d..449fe4a111d66a322ae766c95aa09d5625aa8bc3 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -1178,7 +1178,8 @@ Handle<String> Literal::ToString() {
} else {
str = DoubleToCString(value_->Number(), buffer);
}
- return isolate_->factory()->NewStringFromAscii(CStrVector(str));
+ Handle<String> res = isolate_->factory()->NewStringFromAscii(CStrVector(str));
+ return res;
Igor Sheludko 2014/03/24 13:43:16 As the allocation size is small and you are not go
}

Powered by Google App Engine
This is Rietveld 408576698