-
Notifications
You must be signed in to change notification settings - Fork 34
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 implementation of napi_create_boolean #31
Fix implementation of napi_create_boolean #31
Conversation
LGTM - thanks for fixing! cc @boingoing |
What about the similar fix for the other branches ? We at least need it in the 6.2 branch as I'm thinking we'll use that as the abi-stable-node "master" when we want to rebase onto the latest node. |
@mhdawson this fix is chakracore-specfic, and AFAICT api-prototype-chakracore-7.x is the only branch that contains chakracore, and therefore src/node_jsrtapi.cc. Thus, there should be no other branches to which this fix needs to be applied. |
@gabrielschulhof sorry should have looked more closely at what file was being changed. |
@mhdawson NP :) I too have often confused node_jsvmapi.cc with node_jsrtapi.cc. |
I was not happy with how those file names turned out. Would be great for someone to reorganize or rename them to clearly show they are v8 and jsrt implementations of napi. (drive by holla') |
Do I need to do anything with this PR before it can be merged? |
Need to call JsBoolToBoolean(), not JsDoubleToNumber() when creating a JS boolean from a bool. Closes: #31
Need to call JsBoolToBoolean(), not JsDoubleToNumber() when creating a JS boolean from a bool. Closes #31
824d477
to
e2480ba
Compare
Need to call JsBoolToBoolean(), not JsDoubleToNumber() when creating a JS boolean from a bool. Closes: #31
Closed in e2480ba |
Need to call JsBoolToBoolean(), not JsDoubleToNumber() when creating a JS boolean from a bool. Closes: #31
This is a leftover copy/paste error that causes booleans to be rendered as numbers when they return to JS.