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
Refactor getAbi #12
Refactor getAbi #12
Conversation
(will fix this) |
@juliangruber Are you still interested in finishing up this PR? 😄 |
yes, will do! |
Awesome thanks! |
fb2b87b
to
7cab3a8
Compare
@juliangruber I rebased your PR. This should now be good to go. One minor draw back is the slightly increased packages size due to the inclusion of |
Thank you so much, LVGTM! |
@@ -61,7 +61,6 @@ test('getAbi calculates correct Node ABI', function (t) { | |||
|
|||
test('getAbi calculates correct Electron ABI', function (t) { | |||
t.throws(function () { getAbi(undefined, 'electron') }) | |||
t.throws(function () { getAbi('7.2.0', 'electron') }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized that this changes behavior:
node-abi
wouldn't throw anymore if the version isn't supported yet. This could lead to strange behaviors since node-abi
would just return the wrong ABI instead. Let me fix that.
(this is based on #11, so ignore "add missing abi versions to targets")
Yay for less maintenance :)