![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Functions | |
val | property ("f") |
qDebug ()<< engine.hasError() | |
[1] | |
QJSManagedValue | managed (std::move(val), &engine) |
Q_ASSERT (error.toInt(), 42) | |
Variables | |
QJSEngine | engine |
[qjs-engine-example] | |
auto | val = engine.evaluate("let o = { get f() {throw 42;} }; o") |
QJSValue | error = engine.catchError() |
QJSManagedValue managed | ( | std::move(val) | , |
& | engine ) |
val property | ( | "f" | ) |
Q_ASSERT | ( | error. | toInt(), |
42 | ) |
qDebug | ( | ) |
[1]
[7]
[toString]
QJSEngine engine |
[qjs-engine-example]
Definition at line 6 of file exampleqjsengine.cpp.
QJSValue error = engine.catchError() |
Definition at line 18 of file exampleqjsengine.cpp.
val = engine.evaluate("let o = { get f() {throw 42;} }; o") |
Definition at line 8 of file exampleqjsengine.cpp.