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

fix(js): better error messages when makeSafe fails #16263

Closed

Conversation

DonIsaac
Copy link
Contributor

@DonIsaac DonIsaac commented Jan 8, 2025

What does this PR do?

Partial redress of opal/opal#2706. Related to #16259.

makeSafe can fail when creating safe iterables if users modify the prototype of Set or Map before primordials are loaded. This PR adds a better error message for such cases, but does nothing to address the underlying problem. We still need to decide on the best course of action there.

How did you verify your code works?

I've added tests.

@robobun
Copy link

robobun commented Jan 8, 2025

Updated 4:23 PM PT - Jan 8th, 2025

@DonIsaac, your commit 9974369 has passed in #9260! 🎉


🧪   try this PR locally:

bunx bun-pr 16263

@DonIsaac DonIsaac requested review from a team and paperclover and removed request for a team January 8, 2025 23:49
@Jarred-Sumner
Copy link
Collaborator

We should just delete these wrappers and instead make JSC have private symbols for what we need

these wrappers are a skill issue

@paperclover
Copy link
Member

see #16259 (comment)

Copy link
Member

@paperclover paperclover left a comment

Choose a reason for hiding this comment

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

no

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.

4 participants