Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have this example problem ? #243

Open
tu6ge opened this issue Aug 10, 2022 · 0 comments
Open

Have this example problem ? #243

tu6ge opened this issue Aug 10, 2022 · 0 comments

Comments

@tu6ge
Copy link

tu6ge commented Aug 10, 2022

let global = cx.global()
    .get(&mut cx, "URL")?
    .downcast_or_throw::<JsFunction, _>(&mut cx)?;
let url: Handle<JsString> = cx.string("https://neon-bindings.com");
let result = ctor.construct(&mut cx, vec![url]);

I find global is not used, and next ctor is not definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant