diff --git a/dlls/jscript/regexp.c b/dlls/jscript/regexp.c index cc38c49ba4e..1f874e27de9 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 e2097a3e8ee..1930a3ca222 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();