I have an existing object in my addon scope. its: var ostypes = {}
It was created by importing this jsm: Cu.import('chrome://myaddon/content/modules/ostypes_generic.jsm');
Contents of this file is:
var ostypes = {
flock_overide: 'blah',
no_override: 'blah'
};
So now I want to import this jsm: Cu.import('chrome://myaddon/content/modules/ostypes_mac.jsm');
Which has this:
var ostypes = {
flock_overide: 'blah_replaced'
};
In my addon scope I want to import generic.jsm then mac.jsm and I want ostypes to look like this finally:
var ostypes = {
flock_overide: 'blah_replaced',
no_override: 'blah'
}
Then I want to replace some things in that object and add more.