We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 a piece of code, that works on node <12, but will need to be converted to for node 12.
return static_cast<ext2_filsys>( info[0]->ToObject().As<v8::External>()->Value() );
I couldn't see any examples for v8::External in conversion (i.e. I'm guessing using it with Nan::To<v8::Object>?)
v8::External
Nan::To<v8::Object>
What would be an example of using such v8::External cases?
The text was updated successfully, but these errors were encountered:
Resolved it with this form, but feels like I might be mixing stuff here quote a bit.
return static_cast<ext2_filsys>( Nan::To<v8::Object>(info[0]).ToLocalChecked().As<v8::External>()->Value() );
Sorry, something went wrong.
@imrehg we are mostly maintaining the napi/node-addon-api examples. Sounds like you may have already answered your own question anyway.
No branches or pull requests
Have a piece of code, that works on node <12, but will need to be converted to for node 12.
I couldn't see any examples for
v8::External
in conversion (i.e. I'm guessing using it withNan::To<v8::Object>
?)What would be an example of using such
v8::External
cases?The text was updated successfully, but these errors were encountered: