diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-01-06 08:54:39 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-01-25 08:31:35 +0000 |
commit | 4d23faf34192cef372f846dcf02fd8cc398b14c0 (patch) | |
tree | 167060c615e5b93316cbcc8d45112fa6ec5aa946 /src/qml/qml/v8 | |
parent | 064ca8fc81b9db621fbbda89e10456c27db0c0d1 (diff) |
Port builtin methods in Canvas2D to new calling convention
Change-Id: I0d141b3d655161a7892ffd0e5b8f019b3df51da9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/v8')
-rw-r--r-- | src/qml/qml/v8/qv4domerrors_p.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/qml/qml/v8/qv4domerrors_p.h b/src/qml/qml/v8/qv4domerrors_p.h index d2225ec591..a9bdbe01ae 100644 --- a/src/qml/qml/v8/qv4domerrors_p.h +++ b/src/qml/qml/v8/qv4domerrors_p.h @@ -74,13 +74,6 @@ QT_BEGIN_NAMESPACE #define DOMEXCEPTION_VALIDATION_ERR 16 #define DOMEXCEPTION_TYPE_MISMATCH_ERR 17 -#define V4THROW_DOM(error, string) { \ - QV4::ScopedValue v(scope, scope.engine->newString(QStringLiteral(string))); \ - QV4::ScopedObject ex(scope, scope.engine->newErrorObject(v)); \ - ex->put(QV4::ScopedString(scope, scope.engine->newIdentifier(QStringLiteral("code"))), QV4::ScopedValue(scope, QV4::Primitive::fromInt32(error))); \ - return ctx->engine()->throwError(ex); \ -} - #define THROW_DOM(error, string) { \ QV4::ScopedValue v(scope, scope.engine->newString(QStringLiteral(string))); \ QV4::ScopedObject ex(scope, scope.engine->newErrorObject(v)); \ |