The plan in general for chrome JS is to switch from #ifdefs to having
things defined in AppConstants.jsm
Fabrice
On 11/30/2015 01:05 AM, Tim Guan-tin Chien wrote:
> The Gecko JavaScript is also littered with #ifdef and # is really not a
> token for comment in JS... is there any plan to migrate that away since
> there is ESLint present?
>
> On Sun, Nov 29, 2015 at 10:37 PM, Vivien Nicolas <[email protected]
> <mailto:[email protected]>> wrote:
>
> On Sun, Nov 29, 2015 at 2:30 PM, David Bruant <[email protected]
> <mailto:[email protected]>> wrote:
>
> > Hi,
> >
> > Just a drive-by comment to inform folks that there is an effort to
> > transition Mozilla JavaScript codebase to standard JavaScript.
> > Main bugs is: https://bugzilla.mozilla.org/show_bug.cgi?id=867617
> >
> > And https://bugzilla.mozilla.org/show_bug.cgi?id=1103158 is about
> > removing non-standard features from SpiderMonkey.
> > Of course this can rarely be done right away and most often requires
> > dependent bugs to move code to standard ECMAScript (with a period with
> > warnings about the usage of the non-standard feature).
> >
>
> What about .jsm modules ? Or is that not really considered ?
>
> I have been told that ES6 modules may help to solve some of the problems
> covered by .jsm but I don't see how you can create a ES6 module that
> is can
> be accessed from multiple js context from the same origin. Mostly
> interested as it would be nice to be able to write a module once and
> share
> it between multiple tabs instead of having to reload the same JS
> script for
> all similar tabs, like all the bugzilla tabs many of us have open for
> example.
> _______________________________________________
> dev-platform mailing list
> [email protected] <mailto:[email protected]>
> https://lists.mozilla.org/listinfo/dev-platform
>
>
>
>
> _______________________________________________
> firefox-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/firefox-dev
>
--
Fabrice Desré
b2g team
Mozilla Corporation
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform