Jint 2.0 - Enumeration Question

Apr 19, 2014 at 7:25 PM
I am curious: Is there a way for me to add an object to my script context in such a way that all of its scriptable properties and methods are visible to the script e.g. for(var key in obj) but without causing a stack overflow when it attempts to evaluate all of the current values of said wrapped object?

Currently, if I do:

Engine.Global.FastAddProperty("document", new ObjectWrapper(script, _document), false, true, false);

I get an object I can interact with, but if I try and iterate through its properties I get nothing. If I try and force it to add all properties then it explodes trying to recursively enumerate all properties throughout the entire DOM.
Apr 28, 2014 at 6:37 AM
I finally figured out a solution to my problem! Nvm!