Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 35c581f6b09b2bdb09fc3edb499e15ced5005e43..798fcab72aaacf67f45d19f6e10db9aa8420c9f5 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1063,7 +1063,7 @@ static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) { |
// 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(array->get(v8::Context::kDebugIdIndex)); |
isolate->debug()->OnBeforeCompile(script); |