luaJIT error handling with FFI calls a non-existent method – Nginx
What I want to avoid is to capture/ignore the exception when FFI calls a non-existent method. For example, the following code calls the non_existent_method. However, pcall cannot handle the error. local ffi = require "ffi" local C = ffi.C ffi.cdef…