Skip to content

Add JS_NewProxy #1261

@Sytten

Description

@Sytten

Hi!
It would be nice to be able to create proxy easily with the interface. It would complement the JS_IsProxy and others.
Probably looks like:

JS_EXTERN JSValue JS_NewProxy(JSContext *ctx, JSValueConst target, JSValueConst handler);

I would probably keep the handler opaque but I guess it could also be a struct with the different exotic methods that are supported.

Thanks!

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