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

Unified Diff: src/accessors.cc

Issue 1130783002: Migrate error messages, part 9. (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 | « no previous file | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/accessors.cc
diff --git a/src/accessors.cc b/src/accessors.cc
index db0ec328ef538f2cba2d686313c7c54c4be534ce..9b24ee37ecf433b50062e20cb541bbda239ba337 100644
--- a/src/accessors.cc
+++ b/src/accessors.cc
@@ -1444,7 +1444,7 @@ static void ModuleGetExport(
Handle<String> name = v8::Utils::OpenHandle(*property);
Handle<Object> exception = isolate->factory()->NewReferenceError(
- "not_defined", HandleVector(&name, 1));
+ MessageTemplate::kNotDefined, name);
isolate->ScheduleThrow(*exception);
return;
}
@@ -1465,7 +1465,7 @@ static void ModuleSetExport(
if (old_value->IsTheHole()) {
Handle<String> name = v8::Utils::OpenHandle(*property);
Handle<Object> exception = isolate->factory()->NewReferenceError(
- "not_defined", HandleVector(&name, 1));
+ MessageTemplate::kNotDefined, name);
isolate->ScheduleThrow(*exception);
return;
}
« no previous file with comments | « no previous file | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698