Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (24 sloc) 0.692 kB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace IronJS.Runtime
{
public class HostFunctionObject<T> : FunctionObject
where T : class
{
static HostFunctionObject()
{
if (!typeof(T).IsSubclassOf(typeof(Delegate)))
{
throw new InvalidOperationException(typeof(T).Name + " is not a delegate type");
}
}
public T Delegate;
public HostFunctionObject(Environment env, T delegateFunction, FunctionMetaData metaData)
: base(env, metaData, env.Maps.Function)
{
Delegate = delegateFunction;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.