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

Unified Diff: src/json-stringifier.h

Issue 1130073005: Revert of Migrate error messages, part 10. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/json.js ('k') | src/messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json-stringifier.h
diff --git a/src/json-stringifier.h b/src/json-stringifier.h
index 9579c78ff0774f4c18ae8e3ca79b427b939ba57a..efb71e5fb11d59f74fdfa3f2f31e94974670497b 100644
--- a/src/json-stringifier.h
+++ b/src/json-stringifier.h
@@ -8,7 +8,6 @@
#include "src/v8.h"
#include "src/conversions.h"
-#include "src/messages.h"
#include "src/string-builder.h"
#include "src/utils.h"
@@ -273,8 +272,8 @@
for (int i = 0; i < length; i++) {
if (elements->get(i) == *object) {
AllowHeapAllocation allow_to_return_error;
- Handle<Object> error =
- factory()->NewTypeError(MessageTemplate::kCircularStructure);
+ Handle<Object> error = factory()->NewTypeError(
+ "circular_structure", HandleVector<Object>(NULL, 0));
isolate_->Throw(*error);
return EXCEPTION;
}
« no previous file with comments | « src/json.js ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698