예제 #1
0
        /// <summary>
        /// Creates a this-reference for use inside this class's constructor.
        /// </summary>
        public JS.Value NewObjectForConstructor(uint argc, JSCallArgumentsPtr vp)
        {
            var callArgs = new JSCallArgs(vp, argc);

            return(new JS.Value(
                       JSAPI.NewObjectForConstructor(
                           Context, ClassPtr, ref callArgs
                           )
                       ));
        }