| Index: src/runtime/runtime-compiler.cc
|
| diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc
|
| index 16175803f05a76d91b2ccdb9515b2ba0c39d26f3..72489f5d1b299c14e24cd580d175d4b3d6e680f2 100644
|
| --- a/src/runtime/runtime-compiler.cc
|
| +++ b/src/runtime/runtime-compiler.cc
|
| @@ -10,6 +10,7 @@
|
| #include "src/frames.h"
|
| #include "src/full-codegen.h"
|
| #include "src/isolate-inl.h"
|
| +#include "src/messages.h"
|
| #include "src/runtime/runtime-utils.h"
|
| #include "src/v8threads.h"
|
| #include "src/vm-state-inl.h"
|
| @@ -364,8 +365,8 @@ RUNTIME_FUNCTION(Runtime_CompileString) {
|
| Handle<Object> error_message =
|
| context->ErrorMessageForCodeGenerationFromStrings();
|
| THROW_NEW_ERROR_RETURN_FAILURE(
|
| - isolate, NewEvalError("code_gen_from_strings",
|
| - HandleVector<Object>(&error_message, 1)));
|
| + isolate,
|
| + NewEvalError(MessageTemplate::kCodeGenFromStrings, error_message));
|
| }
|
|
|
| // Compile source string in the native context.
|
| @@ -398,7 +399,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate, Handle<String> source,
|
| native_context->ErrorMessageForCodeGenerationFromStrings();
|
| Handle<Object> error;
|
| MaybeHandle<Object> maybe_error = isolate->factory()->NewEvalError(
|
| - "code_gen_from_strings", HandleVector<Object>(&error_message, 1));
|
| + MessageTemplate::kCodeGenFromStrings, error_message);
|
| if (maybe_error.ToHandle(&error)) isolate->Throw(*error);
|
| return MakePair(isolate->heap()->exception(), NULL);
|
| }
|
|
|