| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 2548c4dc3432fef32a6c31e2a5c058812a072f98..f7e1c746dd49f79fe31d6ffbb11aab5f24785557 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -844,6 +844,7 @@ Handle<Context> Factory::NewDebugEvaluateContext(Handle<Context> previous,
|
| Handle<Context> wrapped,
|
| Handle<StringSet> whitelist) {
|
| STATIC_ASSERT(Context::WHITE_LIST_INDEX == Context::MIN_CONTEXT_SLOTS + 1);
|
| + DCHECK(scope_info->IsDebugEvaluateScope());
|
| Handle<ContextExtension> context_extension = NewContextExtension(
|
| scope_info, extension.is_null() ? Handle<Object>::cast(undefined_value())
|
| : Handle<Object>::cast(extension));
|
|
|