Use native context to retrieve ErrorMessageForCodeGenerationFromStrings (issue 11093073)

5 views
Skip to first unread message

jkum...@chromium.org

unread,
Oct 11, 2012, 9:25:51 AM10/11/12
to ul...@chromium.org, v8-...@googlegroups.com
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);


ul...@chromium.org

unread,
Oct 11, 2012, 9:51:52 AM10/11/12
to jkum...@chromium.org, v8-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages