allocate static method
Implementation
static Pointer<JSStaticFunction> allocate(JSStaticFunctionDelegate delegate) {
final Pointer<JSStaticFunction> result = calloc.call(1);
result.ref
..name = delegate.name
..callAsFunction = delegate.callAsFunction ?? nullptr
..attributes = delegate.attributes;
return result;
}