Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 2 files). Show all
Unified · Split
| @@ -731,6 +731,13 @@ void ScriptEngine::init() { · 730 unmodified lines | ||
| 731 | 731 | QScriptValue webSocketConstructorValue = newFunction(WebSocketClass::constructor); |
| 732 | 732 | globalObject().setProperty("WebSocket", webSocketConstructorValue); |
| 733 | 733 | |
| 734 | + /**jsdoc | |
| 735 | + * Prints a message to the program log and emits {@link Script.printedMessage}. | |
| 736 | + * The message logged is the message values separated by spaces. | |
| 737 | + * <p>Alternatively, you can use {@link Script.print} or one of the {@link console} API methods.</p> | |
| 738 | + * @function print | |
| 739 | + * @param {...*} [message] - The message values to print. | |
| 740 | + */ | |
| 734 | 741 | globalObject().setProperty("print", newFunction(debugPrint)); |
| 735 | 742 | |
| 736 | 743 | QScriptValue audioEffectOptionsConstructorValue = newFunction(AudioEffectOptions::constructor); |