Platforms to show: All Mac Windows Linux Cross-Platform
Back to JSContextMBS class.
JSContextMBS.FunctionCalled(functionObject as JSObjectMBS, thisObject as JSObjectMBS, arguments() as JSValueMBS, byref JSException as JSValueMBS) as JSValueMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | JavaScript | MBS MacFrameworks Plugin | 15.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
Please return a value and in case of error set exception.
Some examples using this event:
JSContextMBS.ShouldTerminate as Boolean
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| event | JavaScript | MBS MacFrameworks Plugin | 25.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | All |
If you return true, the timed out script will terminate.
If you return false, the script will run for another period of the allowed time limit specified via SetExecutionTimeLimit.
Within this event, you may call SetExecutionTimeLimit to set a new time limit.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.