-
Notifications
You must be signed in to change notification settings - Fork 208
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
test: add test cases to test-marshal.js for records #2306
Conversation
1c010b8
to
e497718
Compare
Why does it do that? The point of the WeakMap is to guarantee that Remotables don't need to be further checked: if they are marked, they are handled specially. |
If you want to get rid of the special handling and explicitly check the Remotable's contents every time with code, you'll have to avoid adding the prototype to a Remotable. Please don't special-case prototypes, That will be a regression in the debugging experience, and the REPL will have to change as well to print Remotables better. |
Given the understanding achieved today in #2018 (comment) , I'll change this to remove the |
f40c2d6
to
2e22da2
Compare
This exercises the current behavior of records, both empty objects (with and without a Far marking), and objects that contain data and/or methods. It also checks that Far/Remotable can be serialized.
2e22da2
to
ad7f091
Compare
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.
Seems fine.
This exercises the current behavior of records, both empty objects (with and
without a Far marking), and objects that contain data and/or methods.
It also checks that Far/Remotable can be serialized and passes the
mustPassByPresence() check.
first step of #2018