-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Tracking issue for new set
methods.
#4128
Comments
Hello, I would like to try solving this task! |
Sure! Assigned it to you. Feel free to reach out if you have any questions 😄 |
Hello, I have encountered an issue with two methods: Set.prototype.intersection(other) and Set.prototype.difference(other). When I ask it to check the following: ```rust fn difference_empty(){
}``` And specifically, the check fails when we try to perform one of these operations on a non-empty set. Perhaps I wrote the test incorrectly, missed some logic, or didn't fully understand how to correctly return the result. If you could point out where I got stuck or what I did wrong, it would greatly help me in my further work. |
I took a look at the branch that you're working on, and I think the implementations may be a bit optimistic at current for the specification, especially in these two methods. My recommendation would be to copy and paste the specification steps and then work through them individually with a Boa like internal (if you'd like a good example of this in the engine, I'd recommend many of the The specification has a couple of sneaky user land calls that are worked into the specification that means following the steps, especially in certain locations may be fairly important. For instance, test262 has a test for a set-like object and set-like class. Also, if it wasn't for the userland calls, I'd recommend taking a look at Also, an early comment would be: these are methods, so they should be added to the BuiltinBuilder as |
Hello, i am done this tasks and create pull requests #4145 |
The set methods proposal has landed in the specification. These methods need to be implemented for our conformance.
Fore reference, the archived proposal repository can be found here. Although, the methods are also currently in the ECMAScript spec.
Methods that need to be implemented
The text was updated successfully, but these errors were encountered: