diff options
Diffstat (limited to 'tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/script.mjs')
-rw-r--r-- | tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/script.mjs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/script.mjs b/tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/script.mjs new file mode 100644 index 0000000000..a4f929222a --- /dev/null +++ b/tests/auto/quick/doc/how-tos/how-to-cpp-enum-js/script.mjs @@ -0,0 +1,13 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +//! [file] +export function backendStatusUpdate(backendStatus) { + if (backendStatus === Backend.Error) { + console.warn("Error!") + return + } + + console.log("Backend loaded successfully") +} +//! [file] |