Beispiel #1
0
        public void SetResultObj(object result, JsTypeDefinition jsTypeDef)
        {
            if (!jsTypeDef.IsRegisterd)
            {
                _context.RegisterTypeDefinition(jsTypeDef);
            }

            INativeScriptable proxy  = _context.CreateWrapper(result, jsTypeDef);
            JsValue           output = new JsValue();

            _context.Converter.ToJsValue(proxy, ref output);
            NativeV8JsInterOp.ResultSetValue(_metArgsPtr, ref output);
        }