Index: src/runtime/runtime-scopes.cc |
diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
index bdb6fcaf0dc268188d5f19ade2060b58a7aa10c5..cf885ec0d87a9eca8c8c617648c0c1e890346abd 100644 |
--- a/src/runtime/runtime-scopes.cc |
+++ b/src/runtime/runtime-scopes.cc |
@@ -17,15 +17,17 @@ |
static Object* ThrowRedeclarationError(Isolate* isolate, Handle<String> name) { |
HandleScope scope(isolate); |
+ Handle<Object> args[1] = {name}; |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewTypeError(MessageTemplate::kVarRedeclaration, name)); |
+ isolate, NewTypeError("var_redeclaration", HandleVector(args, 1))); |
} |
RUNTIME_FUNCTION(Runtime_ThrowConstAssignError) { |
HandleScope scope(isolate); |
- THROW_NEW_ERROR_RETURN_FAILURE(isolate, |
- NewTypeError(MessageTemplate::kConstAssign)); |
+ THROW_NEW_ERROR_RETURN_FAILURE( |
+ isolate, |
+ NewTypeError("const_assign", HandleVector<Object>(NULL, 0))); |
} |
@@ -1003,7 +1005,8 @@ |
} else if (is_strict(language_mode)) { |
// Setting read only property in strict mode. |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewTypeError(MessageTemplate::kStrictCannotAssign, name)); |
+ isolate, |
+ NewTypeError("strict_cannot_assign", HandleVector(&name, 1))); |
} |
return *value; |
} |
@@ -1094,7 +1097,8 @@ |
JSFunction* function = frame->function(); |
if (is_strict(function->shared()->language_mode())) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, NewTypeError(MessageTemplate::kStrictPoisonPill)); |
+ isolate, NewTypeError("strict_arguments_callee", |
+ HandleVector<Object>(NULL, 0))); |
} |
return function; |
} |