Fixed possible crash when searching the canonical symbol.

This commit is contained in:
Roberto Raggi
2009-10-14 17:12:41 +02:00
parent ee324b0b1e
commit 2c80805165

View File

@@ -581,6 +581,8 @@ Symbol *LookupContext::canonicalSymbol(Symbol *symbol,
NamespaceBinding *globalNamespace)
{
Symbol *canonicalSymbol = LookupContext::canonicalSymbol(symbol);
if (! canonicalSymbol)
return 0;
if (Identifier *symbolId = canonicalSymbol->identifier()) {
if (symbolId && canonicalSymbol->type()->isFunctionType()) {