diff --git a/core/bindings.rs b/core/bindings.rs index 3bff22e50c8770..132d2a8ca9ed21 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -171,6 +171,7 @@ pub fn set_func( let key = v8::String::new(scope, name).unwrap(); let tmpl = v8::FunctionTemplate::new(scope, callback); let val = tmpl.get_function(scope).unwrap(); + val.set_name(key); obj.set(scope, key.into(), val.into()); }