mildew.binder

Contains functions to mixin to simplify code reuse. For these to work, the parameters of a native function must be called context, thisObj, args, and nfe.

Members

Functions

CHECK_MINIMUM_ARGS
string CHECK_MINIMUM_ARGS()

Check for a minimum number of arguments. This must be used if using TO_ARG

CHECK_THIS_NATIVE_OBJECT
string CHECK_THIS_NATIVE_OBJECT()

Shorthand for validating a this object as a native type

TO_ARG
string TO_ARG()

Uses .init value of a variable if argument doesn't exist. Arguments length MUST be checked first

TO_ARG_CHECK_INDEX
string TO_ARG_CHECK_INDEX()

Shorthand for extracting an argument without validating its type

TO_ARG_OPT
string TO_ARG_OPT()

Get an optional argument and default value

Meta