зеркало из https://github.com/mozilla/pjs.git
Bug 378829 - "ASSERTION: Creation of FunctionCall failed" with XPath "z()"; (Av1) Remove bogus assertion.
r=jonas.
This commit is contained in:
Родитель
51cad48398
Коммит
a833b28664
|
@ -470,6 +470,7 @@ txExprParser::createFunctionCall(txExprLexer& lexer, txIParseContext* aContext,
|
|||
fnCall = new txCoreFunctionCall(type);
|
||||
NS_ENSURE_TRUE(fnCall, NS_ERROR_OUT_OF_MEMORY);
|
||||
}
|
||||
|
||||
// check extension functions and xslt
|
||||
if (!fnCall) {
|
||||
rv = aContext->resolveFunctionCall(lName, namespaceID,
|
||||
|
@ -480,16 +481,15 @@ txExprParser::createFunctionCall(txExprLexer& lexer, txIParseContext* aContext,
|
|||
NS_ASSERTION(!fnCall, "Now is it implemented or not?");
|
||||
rv = parseParameters(0, lexer, aContext);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
*aResult = new txLiteralExpr(tok->Value() +
|
||||
NS_LITERAL_STRING(" not implemented."));
|
||||
NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ERROR("Creation of FunctionCall failed");
|
||||
return rv;
|
||||
}
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
//-- handle parametes
|
||||
|
|
Загрузка…
Ссылка в новой задаче