-
-
Notifications
You must be signed in to change notification settings - Fork 401
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
implement Map() #401
Comments
I can take a stap at this |
Assigned |
Oh sorry, I've been very busy recently. I'll start as soon as possible. |
#419 I will wait for this PR. |
sorry, I'm too busy to have time to do this. I will unassign me. |
I'm happy to take a look at this |
Sure! Tell us if you need any help or have any question :) |
Thank you! I've been having a go at it, and I was wondering what the best way to store the data would be? With arrays, the data is stored in fields which makes sense with how the API looks, but with Map the data is hidden and only accessed through methods on the object. Should it be stored as a field of the rust struct, similar to bigint and the like, or something else? |
Good question! The best way to store it would be in here and create a field |
Thank you! I'll try that out |
ECMASCript feature
Map objects are collections of key/value pairs where both the keys and values may be arbitrary ECMAScript language values. A distinct key value may only occur in one key/value pair within the Map's collection. Distinct key values are discriminated using the SameValueZero comparison algorithm.
I would like to see
Map
implemented. ECMAScript specification.Example code
Example to work from
Array is implemented here: https://github.com/jasonwilliams/boa/blob/master/boa/src/builtins/array/mod.rs
Contributing
https://github.com/jasonwilliams/boa/blob/master/CONTRIBUTING.md
The text was updated successfully, but these errors were encountered: