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

Unified Diff: src/json.js

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/isolate.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/json.js
diff --git a/src/json.js b/src/json.js
index e1bb146eb95370479fb4a0ef4d333d3afa7bbf90..f20106ab69b9d8170fd5200ca17767bc7b56257d 100644
--- a/src/json.js
+++ b/src/json.js
@@ -51,7 +51,9 @@
function SerializeArray(value, replacer, stack, indent, gap) {
- if (!%PushIfAbsent(stack, value)) throw MakeTypeError(kCircularStructure);
+ if (!%PushIfAbsent(stack, value)) {
+ throw MakeTypeError('circular_structure', []);
+ }
var stepback = indent;
indent += gap;
var partial = new InternalArray();
@@ -80,7 +82,9 @@
function SerializeObject(value, replacer, stack, indent, gap) {
- if (!%PushIfAbsent(stack, value)) throw MakeTypeError(kCircularStructure);
+ if (!%PushIfAbsent(stack, value)) {
+ throw MakeTypeError('circular_structure', []);
+ }
var stepback = indent;
indent += gap;
var partial = new InternalArray();
« no previous file with comments | « src/isolate.cc ('k') | src/json-stringifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698