Index: src/debug/debug-evaluate.cc |
diff --git a/src/debug/debug-evaluate.cc b/src/debug/debug-evaluate.cc |
index a7d73256ea9e9cf44b27c1faa9db79884c151f20..27935ba87e53e985770d3438219d3c36d8b6f76a 100644 |
--- a/src/debug/debug-evaluate.cc |
+++ b/src/debug/debug-evaluate.cc |
@@ -14,12 +14,8 @@ |
namespace v8 { |
namespace internal { |
- |
static inline bool IsDebugContext(Isolate* isolate, Context* context) { |
- // Try to unwrap script context if it exist. |
- if (context->IsScriptContext()) context = context->previous(); |
- DCHECK_NOT_NULL(context); |
- return context == *isolate->debug()->debug_context(); |
+ return context->native_context() == *isolate->debug()->debug_context(); |
} |