pCtx.addVariable(name, Function.class);
}
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory) {
PrototypalFunctionInstance instance = new PrototypalFunctionInstance(this, new MapVariableResolverFactory());
if (name != null) {
if (!factory.isIndexedFactory() && factory.isResolveable(name))
throw new CompileException("duplicate function: " + name, expr, start);
factory.createVariable(name, instance);