Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Cannot use Action/Function in PropertBag in JScript/V8

0
0
Thanks - figured that just before your post but thanks anyway ... am I missing something though? Why can I not access the PropertyBag's own Keys function is that intentional?
                engine.AddHostObject("debug", jsapi.mydebug);          
                engine.AddHostObject("console", jsapi.console);
                engine.AddHostObject("document", jsapi.document);
                engine.AddHostType("IndexedList", typeof(IndexedList<Object>));
                engine.AddHostType("ConfigBag", typeof(ConfigBag));
I did try also with PropertyBag added in the AddHostObject but that did not expose Keys either!?

Viewing all articles
Browse latest Browse all 2297