* @brief Builds a JS-style {ok, error?} map. */
| 58 | * @brief Builds a JS-style {ok, error?} map. |
| 59 | */ |
| 60 | static QVariantMap makeJsResult(bool ok, const QString& errorMsg) |
| 61 | { |
| 62 | QVariantMap result; |
| 63 | result.insert(QStringLiteral("ok"), ok); |
| 64 | if (!ok) |
| 65 | result.insert(QStringLiteral("error"), errorMsg); |
| 66 | |
| 67 | return result; |
| 68 | } |
| 69 | |
| 70 | //-------------------------------------------------------------------------------------------------- |
| 71 | // Core operations (main-thread only: parser + transform engines both run on main) |
no outgoing calls
no test coverage detected