On 06/04/2013 04:55 PM, Jonathan Hylands wrote:

Hi everyone,

I'm working on MMS reference workloads, and I need some help getting Blob 
objects to work in a xulrunner script. I'm using b2g-desktop (m-c) as my 
xulrunner environment.

Ben Turner suggested I add the Blob (and File) static functions from 
mozJSComponentLoader.cpp into XPCShellEnvironment.cpp, which I have done, but 
it still doesn't work.

The error I get is: "build/fakeSms.js:119: ReferenceError: Blob is not defined".

Does anyone have any suggestions?

Thanks,
Jon


Wild guess, but did you copy the JS_FS line (http://mxr.mozilla.org/mozilla-central/source/js/xpconnect/loader/mozJSComponentLoader.cpp#320) into the JSFunctionSpec definition as well?

Cheers,
Josh
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to