| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index a5ef0543b5579cf87a5cba52f37bbe82c161bc16..e037c11a63250210f2a36fa1f08a912b04de97c0 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -683,19 +683,7 @@ HandleScope::~HandleScope() {
|
|
|
|
|
| void HandleScope::Leave() {
|
| - v8::ImplementationUtilities::HandleScopeData* current =
|
| - isolate_->handle_scope_data();
|
| - current->level--;
|
| - ASSERT(current->level >= 0);
|
| - current->next = prev_next_;
|
| - if (current->limit != prev_limit_) {
|
| - current->limit = prev_limit_;
|
| - i::HandleScope::DeleteExtensions(isolate_);
|
| - }
|
| -
|
| -#ifdef ENABLE_EXTRA_CHECKS
|
| - i::HandleScope::ZapRange(prev_next_, prev_limit_);
|
| -#endif
|
| + return i::HandleScope::CloseScope(isolate_, prev_next_, prev_limit_);
|
| }
|
|
|
|
|
|
|