diff options
Diffstat (limited to 'src/qml/jsruntime/qv4typedarray.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4typedarray.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/qml/jsruntime/qv4typedarray.cpp b/src/qml/jsruntime/qv4typedarray.cpp index 54c3b9cfc1..456a577b52 100644 --- a/src/qml/jsruntime/qv4typedarray.cpp +++ b/src/qml/jsruntime/qv4typedarray.cpp @@ -1440,16 +1440,6 @@ ReturnedValue IntrinsicTypedArrayPrototype::method_get_toStringTag(const Functio return a->engine()->newString(QString::fromLatin1(a->d()->type->name))->asReturnedValue(); } -ReturnedValue IntrinsicTypedArrayCtor::virtualCallAsConstructor(const FunctionObject *f, const Value *, int, const Value *) -{ - return f->engine()->throwTypeError(); -} - -ReturnedValue IntrinsicTypedArrayCtor::virtualCall(const FunctionObject *f, const Value *, const Value *, int) -{ - return f->engine()->throwTypeError(); -} - static bool validateTypedArray(const Object *o) { const TypedArray *a = o->as<TypedArray>(); @@ -1466,7 +1456,7 @@ ReturnedValue IntrinsicTypedArrayCtor::method_of(const FunctionObject *f, const int len = argc; const Value *items = argv; const FunctionObject *C = thisObject->as<FunctionObject>(); - if (!C) + if (!C || !C->isConstructor()) return scope.engine->throwTypeError(); Value lenValue = Primitive::fromInt32(len); |