Bug 1335886, part 2 - Nodes never have existing symbol tables in enterScope. r=billm

This code gets deleted in the next patch, but the point here is that
we can still compile Firefox with this assertion in place.

MozReview-Commit-ID: 33dw0xm7L4R

--HG--
extra : rebase_source : 140fca3b0b5abf5b3d6636ea63bae2adf1311b09
This commit is contained in:
Andrew McCreight 2017-02-01 11:51:43 -08:00
Родитель 77ff8c47bf
Коммит 4f5c5e3153
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -445,9 +445,9 @@ class SymbolTable:
def enterScope(self, node):
assert isinstance(self.scopes[0], dict)
assert isinstance(self.currentScope, dict)
assert not hasattr(node, 'symtab')
if not hasattr(node, 'symtab'):
node.symtab = { }
node.symtab = { }
self.scopes.append(node.symtab)
self.currentScope = self.scopes[-1]