Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

fix(v8): handle non-string function names

ldm06cdfc1ed1532
diff --git a/vendor/v8-152.2.0/src/function.rs b/vendor/v8-152.2.0/src/function.rs
index 21b78d63f..2a3ebfe69 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() }
}