Reviewers: ulan,

Message:
PTAL.

Description:
Use native context to retrieve ErrorMessageForCodeGenerationFromStrings


BUG=155076


Please review this at https://codereview.chromium.org/11093073/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/runtime.cc


Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 735c77a2eca0b8e6ec227a5f488b630ce3a563ff..10ff1453ce279d098d2e4be3b72732742a34ae39 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -9083,7 +9083,7 @@ static ObjectPair CompileGlobalEval(Isolate* isolate,
   if (native_context->allow_code_gen_from_strings()->IsFalse() &&
       !CodeGenerationFromStringsAllowed(isolate, native_context)) {
     Handle<Object> error_message =
-        context->ErrorMessageForCodeGenerationFromStrings();
+        native_context->ErrorMessageForCodeGenerationFromStrings();
     isolate->Throw(*isolate->factory()->NewEvalError(
         "code_gen_from_strings", HandleVector<Object>(&error_message, 1)));
     return MakePair(Failure::Exception(), NULL);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to