Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  

JavaScript.LoadLibrary

Loads the JavaScriptCore library.

Component Version macOS Windows Linux Server iOS SDK
JavaScriptWebKit 13.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JavaScript.LoadLibrary"; Path )   More

Parameters

Parameter Description Example
Path The native file path to the library. "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so"

Result

Returns OK or error.

Description

Loads the JavaScriptCore library.
Does nothing on macOS or iOS since we use the library provided by Apple with the operation system.

You can load JavaScriptCore.dll on Windows here.
Make sure all dependencies are honored and you may use Dependency Walker application to look for dependencies.

You can load libjavascriptcoregtk.so on Linux here.
e.g. "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so" for Linux 64-bit on ARM.
On Linux you need to install a package which includes JavaScriptCore library, e.g. using “sudo apt-get install libjavascriptcoregtk-4.1” command.

Returns OK on success and an error message otherwise.

Examples

Load library on Linux:

Set Variable [ $r ; Value: MBS("JavaScript.LoadLibrary"; "/usr/lib/aarch64-linux-gnu/libjavascriptcoregtk-4.1.so") ]

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 25th January 2023, last changed 9th February 2023


JavaScript.List - JavaScript.New

💬 Ask a question or report a problem


Start Chat