Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 4250de18c9459dd5bb8ba387c7204b81f1618473..710c61e703ed917eb92abaaaa44e014fcc1f556c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -432,9 +432,7 @@ static Handle<SharedFunctionInfo> MakeFunctionInfo(CompilationInfo* info) { |
ASSERT(!isolate->native_context().is_null()); |
Handle<Script> script = info->script(); |
- // TODO(svenpanne) Obscure place for this, perhaps move to OnBeforeCompile? |
- FixedArray* array = isolate->native_context()->embedder_data(); |
- script->set_context_data(array->get(0)); |
+ script->set_context_data((*isolate->native_context())->data()); |
#ifdef ENABLE_DEBUGGER_SUPPORT |
if (info->is_eval()) { |