| Index: src/debug/debug.cc
|
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc
|
| index 94d6ed6e0125d9d36acc30fed18b4fb5cf5905a5..53d6d40f501b08b494aa79ed89049cae0935b69a 100644
|
| --- a/src/debug/debug.cc
|
| +++ b/src/debug/debug.cc
|
| @@ -2028,6 +2028,10 @@ void Debug::OnAsyncTaskEvent(debug::PromiseDebugActionType type, int id,
|
| }
|
|
|
| void Debug::ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script) {
|
| + // Attach the correct debug id to the script. The debug id is used by the
|
| + // inspector to filter scripts by native context.
|
| + FixedArray* array = isolate_->native_context()->embedder_data();
|
| + script->set_context_data(array->get(v8::Context::kDebugIdIndex));
|
| if (ignore_events()) return;
|
| if (script->type() != i::Script::TYPE_NORMAL &&
|
| script->type() != i::Script::TYPE_WASM) {
|
|
|