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

fix #18, bool value is integer in js #19

Merged
merged 1 commit into from
May 4, 2020
Merged

fix #18, bool value is integer in js #19

merged 1 commit into from
May 4, 2020

Conversation

sigoden
Copy link
Contributor

@sigoden sigoden commented May 4, 2020

related: #18

use node_bindgen::derive::node_bindgen;

#[node_bindgen]
pub fn foo() -> bool {
    true
}
const addon = require('./dist')
console.log(addon.foo()) // true

Copy link
Collaborator

@sehz sehz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sehz sehz merged commit 7777bc2 into infinyon:master May 4, 2020
@sigoden sigoden deleted the fix-return-bool branch May 5, 2020 00:52
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

Successfully merging this pull request may close these issues.

2 participants