示例#1
0
        private IJavascriptObject UpdateConvert(CfrV8Value value, bool isArray = false)
        {
            if (value == null)
            {
                return(null);
            }

            var id = GetNextId();

            value.SetValue(NeutroniumConstants.ObjectId, CfrV8Value.CreateUint(id), CfxV8PropertyAttribute.DontDelete | CfxV8PropertyAttribute.DontEnum
                           | CfxV8PropertyAttribute.ReadOnly);

            return(isArray? value.ConvertBasic(id) : value.ConvertObject(id));
        }
示例#2
0
 private IJavascriptObject ConvertBasic(CfrV8Value cfrV8Value) => cfrV8Value.ConvertBasic(_Count++);