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

Unified Diff: src/api-natives.cc

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/api.cc ('k') | src/builtins.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api-natives.cc
diff --git a/src/api-natives.cc b/src/api-natives.cc
index 71a039f35ea8d4d312e43a398392630190618163..c95f2ce2553210a33374c1fee23282096b05b862 100644
--- a/src/api-natives.cc
+++ b/src/api-natives.cc
@@ -7,7 +7,6 @@
#include "src/api.h"
#include "src/isolate.h"
#include "src/lookup.h"
-#include "src/messages.h"
namespace v8 {
namespace internal {
@@ -96,9 +95,10 @@
duplicate = maybe.FromJust();
}
if (duplicate) {
- THROW_NEW_ERROR(
- isolate, NewTypeError(MessageTemplate::kDuplicateTemplateProperty, key),
- Object);
+ Handle<Object> args[1] = {key};
+ THROW_NEW_ERROR(isolate, NewTypeError("duplicate_template_property",
+ HandleVector(args, 1)),
+ Object);
}
#endif
« no previous file with comments | « src/api.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698