I need to transport some fs.Stats objects across JS domains, by serializing them and deserializing them. I see there is a nifty .toBuffer() instance method and a .fromBuffer() static method to do this! But I don't see how to get ahold of the static method. The Stats constructor isn't exposed? In Node, I can do this:
I need to transport some fs.Stats objects across JS domains, by serializing them and deserializing them. I see there is a nifty
.toBuffer()
instance method and a.fromBuffer()
static method to do this! But I don't see how to get ahold of the static method. The Stats constructor isn't exposed? In Node, I can do this:Could you add
Stats
as a public static member offs
(to match the Node API)?