Add missing arguments

refs #5087
This commit is contained in:
Gunnar Beutner 2017-03-28 13:24:21 +02:00
parent 900b33dc5d
commit 50310fb5bc
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ Object::Ptr String::GetPrototype(void)
prototype->Set("substr", new Function("String#substr", WrapFunction(StringSubstr), { "start", "len" }, true));
prototype->Set("upper", new Function("String#upper", WrapFunction(StringUpper), {}, true));
prototype->Set("lower", new Function("String#lower", WrapFunction(StringLower), {}, true));
prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), {}, true));
prototype->Set("split", new Function("String#split", WrapFunction(StringSplit), { "delims" }, true));
prototype->Set("find", new Function("String#find", WrapFunction(StringFind), { "str", "start" }, true));
prototype->Set("contains", new Function("String#contains", WrapFunction(StringContains), { "str" }, true));
prototype->Set("replace", new Function("String#replace", WrapFunction(StringReplace), { "search", "replacement" }, true));

View File

@ -217,7 +217,7 @@ Value MacroProcessor::EvaluateFunction(const Function::Ptr& func, const Resolver
resolvers_this->Set("macro", new Function("macro (temporary)", boost::bind(&MacroProcessor::InternalResolveMacrosShim,
_1, boost::cref(resolvers), cr, MacroProcessor::EscapeCallback(), resolvedMacros, useResolvedMacros,
recursionLevel + 1)));
recursionLevel + 1), { "str" }));
resolvers_this->Set("resolve_arguments", new Function("resolve_arguments (temporary)", boost::bind(&MacroProcessor::InternalResolveArgumentsShim,
_1, boost::cref(resolvers), cr, resolvedMacros, useResolvedMacros,
recursionLevel + 1)));