From 4c9bf6d32850b9561465fe65006fa3480bdedc8d Mon Sep 17 00:00:00 2001 From: ldm0 Date: Wed, 2 Sep 2026 06:15:25 +0800 Subject: [PATCH] fix(v8): handle non-string function names --- vendor/v8-152.2.0/src/function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/v8-152.2.0/src/function.rs b/vendor/v8-152.2.0/src/function.rs index 21b78d63fb..2a3ebfe697 100644 --- a/vendor/v8-152.2.0/src/function.rs +++ b/vendor/v8-152.2.0/src/function.rs @@ -55,7 +55,7 @@ unsafe extern "C" { argc: int, argv: *const *const Value, ) -> *const Object; - fn v8__Function__GetName(this: *const Function) -> *const String; + fn v8__Function__GetName(this: *const Function) -> *const Value; fn v8__Function__SetName(this: *const Function, name: *const String); fn v8__Function__GetScriptColumnNumber(this: *const Function) -> int; fn v8__Function__GetScriptLineNumber(this: *const Function) -> int; @@ -1093,7 +1093,7 @@ impl Function { } #[inline(always)] - pub fn get_name<'s>(&self, scope: &PinScope<'s, '_>) -> Local<'s, String> { + pub fn get_name<'s>(&self, scope: &PinScope<'s, '_>) -> Local<'s, Value> { unsafe { scope.cast_local(|_| v8__Function__GetName(self)).unwrap() } }