Use native context to retrieve ErrorMessageForCodeGenerationFromStrings

BUG=155076

Review URL: https://codereview.chromium.org/11093073

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12703 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 86bcbcdc
...@@ -9083,7 +9083,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate, ...@@ -9083,7 +9083,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate,
if (native_context->allow_code_gen_from_strings()->IsFalse() && if (native_context->allow_code_gen_from_strings()->IsFalse() &&
!CodeGenerationFromStringsAllowed(isolate, native_context)) { !CodeGenerationFromStringsAllowed(isolate, native_context)) {
Handle<Object> error_message = Handle<Object> error_message =
context->ErrorMessageForCodeGenerationFromStrings(); native_context->ErrorMessageForCodeGenerationFromStrings();
isolate->Throw(*isolate->factory()->NewEvalError( isolate->Throw(*isolate->factory()->NewEvalError(
"code_gen_from_strings", HandleVector<Object>(&error_message, 1))); "code_gen_from_strings", HandleVector<Object>(&error_message, 1)));
return MakePair(Failure::Exception(), NULL); return MakePair(Failure::Exception(), NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment