Revision: 12703
Author: [email protected]
Date: Thu Oct 11 07:14:24 2012
Log: Use native context to retrieve
ErrorMessageForCodeGenerationFromStrings
BUG=155076
Review URL: https://codereview.chromium.org/11093073
http://code.google.com/p/v8/source/detail?r=12703
Modified:
/branches/bleeding_edge/src/runtime.cc
=======================================
--- /branches/bleeding_edge/src/runtime.cc Thu Oct 11 05:01:19 2012
+++ /branches/bleeding_edge/src/runtime.cc Thu Oct 11 07:14:24 2012
@@ -9083,7 +9083,7 @@
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