diff options
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject.cpp')
| -rw-r--r-- | src/qml/jsruntime/qv4regexpobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject.cpp b/src/qml/jsruntime/qv4regexpobject.cpp index 0f5050c704..144716f286 100644 --- a/src/qml/jsruntime/qv4regexpobject.cpp +++ b/src/qml/jsruntime/qv4regexpobject.cpp @@ -770,7 +770,7 @@ ReturnedValue RegExpPrototype::method_split(const FunctionObject *f, const Value if (!C) return Encode::undefined(); - Value *args = scope.alloc(2); + Value *args = scope.constructUndefined(2); args[0] = rx; args[1] = flags; ScopedObject splitter(scope, C->callAsConstructor(args, 2, f)); |
