Skip to content

Remove create() APIs, consistently use try_new() #326

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

Merged
merged 1 commit into from
Jun 3, 2025

Conversation

Manishearth
Copy link
Contributor

create() is mostly useful to avoid the keyword new, but we always return errors so we can always call it try_new instead.

Duration::create() is temporarily persisted until V8 can be updated.

@nekevss nekevss merged commit 7f06fec into boa-dev:main Jun 3, 2025
8 checks passed
@Manishearth Manishearth deleted the create-new branch June 3, 2025 03:02
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