| 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;
|
|
|