On the main thread, I needed to access OS.Constants.libc, however OS.Constants is not available in global bootstrap scope anymore it seems. (I so thought OS was there with only .Constants)
Anyways what would be the most inexpensive way to bring it in?
Firefox is built on XPCOM. If you don’t use it, you’ll be stuck with only the most basic of javascript features. One day maybe the internals will be built on something else, but don’t hold your breath.
Oh shoot, I posted this question at like 3AM my time. Isn’t importing JSM modules free (as long as it was imported else where)? So I can simply just do Cu.import('resoucre://gre/modules/osfile.jsm') for absolutely no cost correct?