Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index ce32cb2898dadf4f3c387769d9e1f581c85cb3c6..7f9691bf765fd73382da75a709faedf1e5293367 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -1409,10 +1409,10 @@ class DictionaryElementsAccessor |
if (is_strict(language_mode)) { |
// Deleting a non-configurable property in strict mode. |
Handle<Object> name = isolate->factory()->NewNumberFromUint(key); |
- Handle<Object> args[2] = { name, obj }; |
- THROW_NEW_ERROR(isolate, NewTypeError("strict_delete_property", |
- HandleVector(args, 2)), |
- Object); |
+ THROW_NEW_ERROR( |
+ isolate, |
+ NewTypeError(MessageTemplate::kStrictDeleteProperty, name, obj), |
+ Object); |
} |
return isolate->factory()->false_value(); |
} |