aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4urlobject.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4urlobject.cpp b/src/qml/jsruntime/qv4urlobject.cpp
index 7e52c63248..6f9a9ecb69 100644
--- a/src/qml/jsruntime/qv4urlobject.cpp
+++ b/src/qml/jsruntime/qv4urlobject.cpp
@@ -659,12 +659,8 @@ ReturnedValue UrlCtor::virtualCallAsConstructor(const FunctionObject *that, cons
Scope scope(v4);
ScopedValue arg1(scope, argv[0]);
- String *arg1StringValue = arg1->stringValue();
- if (arg1StringValue == nullptr)
- return v4->throwTypeError(QLatin1String("Invalid parameter provided"));
-
- QString arg1String = arg1StringValue->toQString();
+ QString arg1String = arg1->toQString();
QString urlString;
if (argc == 2) {