Module: wine Branch: master Commit: 5ead33653508e2c9d1fb7585ceea3acce2708385 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5ead33653508e2c9d1fb7585ce...
Author: Piotr Caban piotr.caban@gmail.com Date: Mon Aug 17 12:12:36 2009 +0200
jscript: Fixed RegExp's function lengths.
---
dlls/jscript/regexp.c | 4 ++-- dlls/jscript/tests/api.js | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c index cc38c49..1f874e2 100644 --- a/dlls/jscript/regexp.c +++ b/dlls/jscript/regexp.c @@ -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} };
diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index e2097a3..1930a3c 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1453,4 +1453,10 @@ testFunctions(String.prototype, [ ["toUpperCase", 0] ]);
+testFunctions(RegExp.prototype, [ + ["toString", 0], + ["exec", 1], + ["test", 1] + ]); + reportSuccess();