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));
        }
Beispiel #2
0
 private IJavascriptObject ConvertBasic(CfrV8Value cfrV8Value) => cfrV8Value.ConvertBasic(_Count++);