diff options
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4stringobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4stringobject.cpp b/src/qml/jsruntime/qv4stringobject.cpp index 571a638355..f32acc6eed 100644 --- a/src/qml/jsruntime/qv4stringobject.cpp +++ b/src/qml/jsruntime/qv4stringobject.cpp @@ -428,7 +428,7 @@ ReturnedValue StringPrototype::method_match(const BuiltinFunction *b, CallData * qSwap(callData->thisObject, callData->args[0]); if (!global) - return RegExpPrototype::method_exec(b, callData); + return RegExpPrototype::method_exec(b, &callData->thisObject, callData->args, callData->argc()); // rx is now in thisObject RegExpObject *rx = static_cast<RegExpObject *>(&callData->thisObject); @@ -438,7 +438,7 @@ ReturnedValue StringPrototype::method_match(const BuiltinFunction *b, CallData * int previousLastIndex = 0; uint n = 0; while (1) { - Value result = Primitive::fromReturnedValue(RegExpPrototype::execFirstMatch(b, callData)); + Value result = Primitive::fromReturnedValue(RegExpPrototype::execFirstMatch(b, &callData->thisObject, callData->args, callData->argc())); if (result.isNull()) break; int index = rx->lastIndex(); |