code: function createBlock (func, type) {
    if (!func) return null;
    else if (func.pointer) return func.pointer;
    var bl = new __block_literal_1;
    // Set the class of the instance
    bl.isa = CGB || (CGB = dlopen().get('_NSConcreteGlobalBlock'));
    // Global flags
    bl.flags = 1 << 29;
    bl.reserved = 0;
    bl.invoke = createWrapperPointer(func, type);
    bl.descriptor = BD.ref();
    return bl.ref();
  }
docs: Creates a C block instance from a JS Function.
  Blocks are regular Objective-C objects in Obj-C, and can be sent messages;
  thus Block instances need are creted using the core.wrapId() function.
  
  @api private