Re: [webkit-dev] JavaScriptCore cross context object sharing

2015-06-29 Thread Geoffrey Garen
> The documentation for JSContextGroupCreate states that "Contexts in the same > group may share and exchange JavaScript objects.” How is this done? Your C code can take a JSObjectRef from one context and use JSObjectSetProperty on another context’s global object in order to make the JSObjectRe

[webkit-dev] JavaScriptCore cross context object sharing

2015-06-28 Thread Gary Kratkin
Hello, The documentation for JSContextGroupCreate states that "Contexts in the same group may share and exchange JavaScript objects.” How is this done? For example, given a context A, and a context B created in the same group (using JSGlobalContextCreateInGroup), how can script in B reference