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

Unified Diff: src/json-parser.h

Issue 7240025: Cleanup of return types and names in factory. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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/factory.cc ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-parser.h
diff --git a/src/json-parser.h b/src/json-parser.h
index f772f56ff033ba56ac3085943a6a9e04485f50e3..d505ecfd5a0084136df24b4194322058bd46d8b1 100644
--- a/src/json-parser.h
+++ b/src/json-parser.h
@@ -413,7 +413,7 @@ Handle<Object> JsonParser<seq_ascii>::ParseJsonNumber() {
template <bool seq_ascii>
Handle<String> JsonParser<seq_ascii>::SlowScanJsonString(int beg_pos) {
// The currently scanned ascii characters.
- Handle<String> ascii(isolate()->factory()->NewStrictSubString(source_,
+ Handle<String> ascii(isolate()->factory()->NewProperSubString(source_,
beg_pos,
position_));
Handle<String> two_byte =
@@ -532,7 +532,7 @@ Handle<String> JsonParser<seq_ascii>::ScanJsonString() {
beg_pos,
end_pos - beg_pos);
} else {
- return isolate()->factory()->NewStrictSubString(source_,
+ return isolate()->factory()->NewProperSubString(source_,
beg_pos,
end_pos);
}
« no previous file with comments | « src/factory.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698