public static extern JSValue AsValue(JSFunction fun);
public static extern JSObject ConstructCreate(JSContext context, JSFunction function, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 3)] JSValue[] args, int numArgs, out JSScriptException error);