fix: FastString v8_string() should error when cannot allocated (#27375)

Upgrades deno_core to 0.326.0
This commit is contained in:
Divy Srivastava 2024-12-16 05:51:49 -08:00 committed by GitHub
parent 7949f53cab
commit 50871b2aa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 17 deletions

View file

@ -4496,6 +4496,7 @@ impl<'a> ToV8<'a> for TscRequestArray {
let method_name = deno_core::FastString::from_static(method_name)
.v8_string(scope)
.unwrap()
.into();
let args = args.unwrap_or_else(|| v8::Array::new(scope, 0).into());
let scope_url = serde_v8::to_v8(scope, self.scope)