-
Notifications
You must be signed in to change notification settings - Fork 71
feat(ecmascript): Implement dataview get and set methods
#455
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
feat(ecmascript): Implement dataview get and set methods
#455
Conversation
aapoalas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a few minor issues and some suggestions, but in general looks pretty damn good to me! Good job and thank you <3
nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs
Outdated
Show resolved
Hide resolved
nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs
Outdated
Show resolved
Hide resolved
aapoalas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, though I had a suggestion through which we can still avoid passing GC into the set_view_value method.
nova_vm/src/ecmascript/builtins/structured_data/data_view_objects/data_view_prototype.rs
Show resolved
Hide resolved
|
@aapoalas Ready to merge when you are :) |
I implemented the
get*andset*methods but it may still not be entirely correct due to theget_offset_by_byteandset_offset_by_bytemethods I added toDataBlock. I also added a few methods to theViewablewhich I am somewhat unsure about if it's the correct approach.Closes #152