Make CurrentContext return Handle<Context>::null

I noticed that ScopeIterator::CurrentContext returns an empty Handle
whereas functions like ScopeIterator::CurrentScopeInfo call
Handle<Context>::null() instead. This commit suggests changing this for
consistency.

Bug: 
Change-Id: I8735d655a8c0affeb6a18e74efe0d33bf6d5e899
Reviewed-on: https://chromium-review.googlesource.com/668440
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48057}
This commit is contained in:
Daniel Bevenius 2017-09-15 14:24:22 +02:00 committed by Commit Bot
parent 8dfdeae0f1
commit 70efab1b65

View File

@ -408,7 +408,7 @@ Handle<Context> ScopeIterator::CurrentContext() {
} else if (LastNestedScopeChain().scope_info->HasContext()) {
return context_;
} else {
return Handle<Context>();
return Handle<Context>::null();
}
}