Skip to content

crust functions passed as arguments can't be treated as *u8 #3239

Description

@jdm
fn instance_jsclass(finalize: extern fn(*JSFreeOp, *JSObject)) -> fn(bare_compartment) -> JSClass {
...
}

Attempts to use finalize inside a JSClass struct (which expects a *u8) fail, whereas inlining this code in the caller work fine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesA-type-systemArea: Type system

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions