Skip to content

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

Closed
@jdm

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.

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