-
Notifications
You must be signed in to change notification settings - Fork 8
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
napi_get_property_names
is buggy in node 10.19
#42
Comments
This btw seemed to me like a v8 behavior rather than node core or Nan related, but I'm not positive. |
yep, #40 looks related. I'll investigate further and add workaround in our code if required. |
@springmeyer - re: #40 fix - ideally we shouldn't use |
Ah, good point. |
FixNapi::String Napi::Value::ToString() const; ^^ Returns the Napi::Value coerced to a JavaScript string. |
napi_get_property_names(_env, _value, &result);
erroneously returns
Number
type when property name has only digit literals e.g '123'This has been fixed in node >=12 (tested 12.16.1, 13.12.0)
/cc @springmeyer
The text was updated successfully, but these errors were encountered: