()
| 458 | ) => Effect.Effect<A, E, R> |
| 459 | ): Effect.Effect<A, E, R> |
| 460 | } = function() { |
| 461 | const wrapper = new EffectPrimitive(OpCodes.OP_COMMIT) as any |
| 462 | switch (arguments.length) { |
| 463 | case 2: { |
| 464 | wrapper.effect_instruction_i0 = arguments[0] |
| 465 | wrapper.commit = arguments[1] |
| 466 | break |
| 467 | } |
| 468 | case 3: { |
| 469 | wrapper.effect_instruction_i0 = arguments[0] |
| 470 | wrapper.effect_instruction_i1 = arguments[1] |
| 471 | wrapper.commit = arguments[2] |
| 472 | break |
| 473 | } |
| 474 | case 4: { |
| 475 | wrapper.effect_instruction_i0 = arguments[0] |
| 476 | wrapper.effect_instruction_i1 = arguments[1] |
| 477 | wrapper.effect_instruction_i2 = arguments[2] |
| 478 | wrapper.commit = arguments[3] |
| 479 | break |
| 480 | } |
| 481 | default: { |
| 482 | throw new Error(getBugErrorMessage("you're not supposed to end up here")) |
| 483 | } |
| 484 | } |
| 485 | return wrapper |
| 486 | } |
| 487 | |
| 488 | /* @internal */ |
| 489 | export const unsafeAsync = <A, E = never, R = never>( |
no test coverage detected