On 8/7/12 9:51 AM, Matthew Gertner wrote:
function loadSubscript(spec) {
   var context = {};
   var scriptLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"].
       getService(Ci.mozIJSSubScriptLoader);
   scriptLoader.loadSubScript(spec);
   return context;
}
...
And the subscript is something like:

function foo() {
}

foo.prototype = {
   do_something: function() { return "Hello, world!"; }
};

Should there be a "new foo()" somewhere here?

Does applying the patch in bug 780542 change behavior for you?

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to