jscript: Fixed RegExp's function lengths.
This commit is contained in:
parent
3da1773cc3
commit
5ead336535
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
|
@ -1453,4 +1453,10 @@ testFunctions(String.prototype, [
|
|||
["toUpperCase", 0]
|
||||
]);
|
||||
|
||||
testFunctions(RegExp.prototype, [
|
||||
["toString", 0],
|
||||
["exec", 1],
|
||||
["test", 1]
|
||||
]);
|
||||
|
||||
reportSuccess();
|
||||
|
|
Loading…
Reference in New Issue