-
Notifications
You must be signed in to change notification settings - Fork 285
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
How to use JsArray #57
Comments
I'm hitting the same error in the code example as well as my project (source). I checked out |
Solution: |
Unfortunately that doesn't seem to work either: Input: let js_object: Handle<JsObject> = JsObject::new(scope);
try!(js_object.set("number", JsInteger::new(scope, 9000)));
// Ok(obj)
Ok(js_object)
|
I was able to get this sample code working using neon v "0.1.18" by removing "use neon::internal::js::{PropertyName};" and by explicitly importing the "Object" trait from neon::js.
|
Another way to shoot yourself in the foot: if you |
While this technically isn't a bug, it's an indication that the API design isn't very good. I'm going to close this issue but we probably want to improve the UX of the API, perhaps as part of the VM 2.0 RFC. |
hi,
i try to compile the example from the readme:
use neon::internal::js::{PropertyName};
looks fishy (no non-internal export; and causes more errors), but im getting without it:The text was updated successfully, but these errors were encountered: