On 9/23/13 8:20 PM, Benjamin Smedberg wrote:
On 9/23/2013 8:45 AM, Philipp Kewisch wrote:


Initially it seems it would be easy to replace calDateTime with a JS
component and I had started to do this, but unfortunately calDateTime
is instanciated directly (via constructor, not via xpcom) in a few
locations in our C code, so replacing only calDateTime with a JS
implementation wouldn't really work out well.
Maybe it's possible to replace the C++ constructor call with an XPCOM
service call which wraps?

So to get/set a jsdate from a js caller, there is a call from JS -> C++ -> JS that returns a value that traverses back through that path? I guess it would be possible, I don't know how much this will affect performance as its used quite often.

If not exporting JS symbols is the way to go, its at least good to know there is a workaround.

Philipp
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to