jscript: Fixed RegExp's function lengths.

oldstable
Piotr Caban 2009-08-17 12:12:36 +02:00 committed by Alexandre Julliard
parent 3da1773cc3
commit 5ead336535
2 changed files with 8 additions and 2 deletions

View File

@ -3523,13 +3523,13 @@ static void RegExp_destructor(DispatchEx *dispex)
}
static const builtin_prop_t RegExp_props[] = {
{execW, RegExp_exec, PROPF_METHOD},
{execW, RegExp_exec, PROPF_METHOD|1},
{globalW, RegExp_global, 0},
{ignoreCaseW, RegExp_ignoreCase, 0},
{lastIndexW, RegExp_lastIndex, 0},
{multilineW, RegExp_multiline, 0},
{sourceW, RegExp_source, 0},
{testW, RegExp_test, PROPF_METHOD},
{testW, RegExp_test, PROPF_METHOD|1},
{toStringW, RegExp_toString, PROPF_METHOD}
};

View File

@ -1453,4 +1453,10 @@ testFunctions(String.prototype, [
["toUpperCase", 0]
]);
testFunctions(RegExp.prototype, [
["toString", 0],
["exec", 1],
["test", 1]
]);
reportSuccess();