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

Add flags #14

Open
hansottowirtz opened this issue Dec 1, 2019 · 0 comments
Open

Add flags #14

hansottowirtz opened this issue Dec 1, 2019 · 0 comments

Comments

@hansottowirtz
Copy link

Hello, I'd like to add flags to the Rsvg constructor:

new Rsvg({keepImageData: true, unlimited: false}); 

But if I try to refer to ARGVAR[0] in https://github.com/f3lang/node-rsvg-prebuilt/blob/master/src/Rsvg.cc#L93, it's always empty:

Nan::MaybeLocal<v8::Object> flagsObject = Nan::To<v8::Object>(ARGVAR[0]);
if (flagsObject.IsEmpty()) {
    printf("No flags given\n");
} else {
    printf("Flags given\n");
}

This always returns No flags given. Can you help me out here? I'm not very familiar with Nan.

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