summaryrefslogtreecommitdiff
path: root/deps/v8/src/scopes.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-05-13 03:28:40 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-05-13 03:28:40 +0200
commit7ee538ddfe15b2de2e325f55d208b725ec1f8ea3 (patch)
tree8879459751605230b6a2f622c665bc9c01198088 /deps/v8/src/scopes.cc
parentfc58a5d4bdf0457e6543e8bb1a0a58dd82aac677 (diff)
downloadnode-new-7ee538ddfe15b2de2e325f55d208b725ec1f8ea3.tar.gz
deps: upgrade v8 to 3.19.0
Diffstat (limited to 'deps/v8/src/scopes.cc')
-rw-r--r--deps/v8/src/scopes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/v8/src/scopes.cc b/deps/v8/src/scopes.cc
index 5ad970ad81..208dc76ac7 100644
--- a/deps/v8/src/scopes.cc
+++ b/deps/v8/src/scopes.cc
@@ -727,8 +727,9 @@ int Scope::ContextChainLength(Scope* scope) {
for (Scope* s = this; s != scope; s = s->outer_scope_) {
ASSERT(s != NULL); // scope must be in the scope chain
if (s->is_with_scope() || s->num_heap_slots() > 0) n++;
- // Catch scopes always have heap slots.
+ // Catch and module scopes always have heap slots.
ASSERT(!s->is_catch_scope() || s->num_heap_slots() > 0);
+ ASSERT(!s->is_module_scope() || s->num_heap_slots() > 0);
}
return n;
}