tailwind-config-viewer icon indicating copy to clipboard operation
tailwind-config-viewer copied to clipboard

Throw an error when function doesn't exist

Open oshogbo opened this issue 3 years ago • 0 comments

In the sapi_library, one of the parameters is a list of sandboxed functions. Currently, when a symbol doesn't exist in the library, it's silently ignored.

I think this behavior is misleading. If the API of the library is changed, there won't be any indication while building the SAPI library. In some cases, this also may lead to extensive debugging from users why such function is not exposed in API class.

We should throw an error when a function can't be found in the library.

oshogbo avatar Jan 15 '22 12:01 oshogbo