diff --git a/include/ircd/js/function.h b/include/ircd/js/function.h index 11fa494c0..e576632d9 100644 --- a/include/ircd/js/function.h +++ b/include/ircd/js/function.h @@ -45,11 +45,12 @@ struct function template js::value operator()(const js::object &, args&&...) const; // new function + template function(JS::AutoObjectVector &stack, const JS::CompileOptions &opts, const char *const &name, - const std::vector &args, - const std::string &src); + const std::vector &args, + const string_t &src); using root::root; explicit function(const value &); @@ -93,16 +94,17 @@ function::function(const value &val) } template +template function::function(JS::AutoObjectVector &stack, const JS::CompileOptions &opts, const char *const &name, - const std::vector &args, - const std::string &src) + const std::vector &args, + const string_t &src) :function::root::type{} { - std::vector argp(args.size()); + std::vector argp(args.size()); std::transform(begin(args), end(args), begin(argp), [] - (const std::string &arg) + (const string_t &arg) { return arg.data(); });