You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the PLANCK_*** native functions check their argument counts and types and then only process things if those checks pass. When they don't the functions typically return null.
Instead these functions could throw JavaScript Errors.
This isn't that big of a deal, since these functions are typically called via ClojureScript wrappers that pass arguments correctly, but revising the functions to throw for bad arguments seems like the right thing to do anyway.
As a concrete example, the last two calls here could throw instead of just returning nil:
Many of the
PLANCK_***
native functions check their argument counts and types and then only process things if those checks pass. When they don't the functions typically returnnull
.Instead these functions could throw JavaScript
Errors
.This isn't that big of a deal, since these functions are typically called via ClojureScript wrappers that pass arguments correctly, but revising the functions to throw for bad arguments seems like the right thing to do anyway.
As a concrete example, the last two calls here could throw instead of just returning
nil
:The text was updated successfully, but these errors were encountered: