From 4a0aa6eecf10432453c22031c247cf24819f1040 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 14:52:14 +1000 Subject: Add facility for a user provided (state-global) native error handler --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index a41b94b..0fbfc4e 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,12 @@ Alias for `lua_pushcfunction`. Alias for `lua_pushcclosure`. +### `lua_atnativeerror(L, func)` + +Sets a function to be called if a native JavaScript error is thrown across a lua pcall. +The function will be run as if it were a message handler (see https://www.lua.org/manual/5.3/manual.html#2.3). + + ### `b = lua_isproxy(p, L)` Returns a boolean `b` indicating whether `p` is a proxy (See `lua_toproxy`). -- cgit v1.2.3-54-g00ecf