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

Unified Diff: src/objects.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 | « src/messages.js ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index a694c0a6da88543ff6144bb0262183276390406b..c982dd29614ac1eb06495a93e93591c04cc35933 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -3228,11 +3228,9 @@ MaybeHandle<Object> Object::SetPropertyInternal(LookupIterator* it,
// the property did not exist yet on the global object itself, we have to
// throw a reference error in strict mode.
if (it->GetReceiver()->IsJSGlobalObject() && is_strict(language_mode)) {
- Handle<Object> args[] = {it->name()};
- THROW_NEW_ERROR(
- it->isolate(),
- NewReferenceError("not_defined", HandleVector(args, arraysize(args))),
- Object);
+ THROW_NEW_ERROR(it->isolate(),
+ NewReferenceError(MessageTemplate::kNotDefined, it->name()),
+ Object);
}
*found = false;
« no previous file with comments | « src/messages.js ('k') | src/runtime/runtime-classes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698