зеркало из https://github.com/mozilla/pjs.git
Bug 601157: EXSLT regexp:match leaks. r=peterv a=blocking-final
This commit is contained in:
Родитель
dba0ecc09a
Коммит
6204523619
|
@ -544,6 +544,9 @@ txXPCOMExtensionFunctionCall::evaluate(txIEvalContext* aContext,
|
|||
}
|
||||
else {
|
||||
returnParam.SetPtrIsData();
|
||||
if (returnType == eNODESET || returnType == eOBJECT) {
|
||||
returnParam.SetValIsInterface();
|
||||
}
|
||||
returnParam.ptr = &returnParam.val;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,17 +19,16 @@ http://www.exslt.org/regexp/index.html
|
|||
{ descr: "Testing regexp:test",
|
||||
expr: "regexp:test('XSLT is great', 'XSLT', '')",
|
||||
expResult: "true" },
|
||||
|
||||
/* test disabled until bug 601157 is fixed
|
||||
|
||||
{ descr: "Testing regexp:match",
|
||||
expr: "regexp:match('XSLT is great', 'XSL.', '')[1]",
|
||||
expResult: "XSLT" },*/
|
||||
|
||||
expResult: "XSLT" },
|
||||
|
||||
{ descr: "Testing regexp:replace",
|
||||
expr: "regexp:replace('Food is great', 'Fo.d', '', 'XSLT')",
|
||||
expResult: "XSLT is great" }
|
||||
];
|
||||
|
||||
|
||||
for each(test in tests) {
|
||||
var style =
|
||||
'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" ' +
|
||||
|
|
Загрузка…
Ссылка в новой задаче