Skip to content

Closures cannot accept arguments of TYPE_CONST_STRING #62

@codykrieger

Description

@codykrieger

When attempting to invoke a closure with an argument of Fiddle::TYPE_CONST_STRING, I get this error:

test.rb:43:in `call': closure args: 10 (RuntimeError)

That's coming from here:

rb_raise(rb_eRuntimeError, "closure args: %d", type);

It appears that the switch in with_gvl_callback() doesn't handle TYPE_CONST_STRING.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions