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: FastString v8_string() should error when cannot allocated #27375

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

littledivy
Copy link
Member

@littledivy littledivy commented Dec 16, 2024

Upgrades deno_core to 0.326.0

@littledivy littledivy changed the title chore: upgrade deno_core to 0.326.0 fix: upgrade deno_core to 0.326.0 Dec 16, 2024
@littledivy littledivy changed the title fix: upgrade deno_core to 0.326.0 fix: FastString v8_string() should error when cannot allocated Dec 16, 2024
@littledivy littledivy enabled auto-merge (squash) December 16, 2024 12:10
ext/fs/ops.rs Outdated
@@ -1424,6 +1424,7 @@ impl<'s> ToV8<'s> for V8MaybeStaticStr {
Cow::Owned(value) => value.into(),
}
.v8_string(scope)
.unwrap()
Copy link
Member

Choose a reason for hiding this comment

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

You probably want to return error here instead of crashing

@littledivy littledivy merged commit 50871b2 into denoland:main Dec 16, 2024
17 checks passed
dsherret pushed a commit that referenced this pull request Jan 9, 2025
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