diff options
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/javascript.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/DOCS/man/javascript.rst b/DOCS/man/javascript.rst index 184c962a97..77a2ad8817 100644 --- a/DOCS/man/javascript.rst +++ b/DOCS/man/javascript.rst @@ -88,7 +88,7 @@ Scripting APIs - identical to Lua (LE) - Last-Error, indicates that ``mp.last_error()`` can be used after the call to test for success (empty string) or failure (non empty reason string). -Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. +Where the Lua APIs use ``nil`` to indicate error, JS APIs use ``undefined``. ``mp.command(string)`` (LE) @@ -96,6 +96,9 @@ Otherwise, where the Lua APIs return ``nil`` on error, JS returns ``undefined``. ``mp.command_native(table [,def])`` (LE) +``mp.command_native_async(table [,fn])`` (LE) Note: ``error`` is empty string on +success. + ``mp.get_property(name [,def])`` (LE) ``mp.get_property_osd(name [,def])`` (LE) |