Skip to content
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

Support Symbol type in WeakMap, WeakSet, WeakRef and FinalizationRegistry #1299

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

clover2123
Copy link
Contributor

No description provided.

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
@@ -4265,19 +4265,28 @@ WeakSetObjectRef* WeakSetObjectRef::create(ExecutionStateRef* state)
return toRef(new WeakSetObject(*toImpl(state)));
}

void WeakSetObjectRef::add(ExecutionStateRef* state, ObjectRef* key)
void WeakSetObjectRef::add(ExecutionStateRef* state, ValueRef* key)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If value is not Heldable, how about return false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it to return boolean as you commented
Thanks for the review!

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
@ksh8281 ksh8281 merged commit 47b9fb1 into Samsung:master Jan 12, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants