[nodejs] convention for publishing modules requiring --harmony?

2012-12-29 Thread Tristan Slominski
Is there a convention for publishing modules that won't run on vanilla latest node but instead need --harmony flag to be set? I didn't see anything in package.json that would serve this function. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mail

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-30 Thread Isaac Schlueter
In bin scripts, do '#!/usr/bin/env node --harmony_whatever' as your shebang line. In library modules, test and throw a useful error right away. And as others have said, document it in the readme. On Saturday, December 29, 2012, Tristan Slominski wrote: > That makes sense.. and as you say, it is

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-30 Thread Tristan Slominski
Thank you. On Sunday, December 30, 2012 7:28:55 AM UTC-6, Isaac Schlueter wrote: > > In bin scripts, do '#!/usr/bin/env node --harmony_whatever' as yourshebang > line. In library modules, test and throw a useful error right away. > > And as others have said, document it in the readme. > > On Sa

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-30 Thread Rick Waldron
On Sunday, December 30, 2012, Tristan Slominski wrote: > RE: "No one should use --harmony today anyway.." > > I didn't see block-scoped "let" in es6-shim (pretty sure that's impossible > to shim without compilation, right?), so although you make a good case for > some things, availability of "let"

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-31 Thread Domenic Denicola
On Sunday, December 30, 2012 4:40:19 PM UTC-5, Rick Waldron wrote: > > On Sunday, December 30, 2012, Tristan Slominski wrote: > >> RE: "No one should use --harmony today anyway.." >> >> I didn't see block-scoped "let" in es6-shim (pretty sure that's >> impossible to shim without compilation, righ

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-31 Thread Tristan Slominski
You'll have better success with "node --harmony --use-strict". On Monday, December 31, 2012 8:58:37 AM UTC-6, Domenic Denicola wrote: > > On Sunday, December 30, 2012 4:40:19 PM UTC-5, Rick Waldron wrote: > >> >> On Sunday, December 30, 2012, Tristan Slominski wrote: >> >>> RE: "No one should use

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-31 Thread Rick Waldron
On Monday, December 31, 2012, Domenic Denicola wrote: > On Sunday, December 30, 2012 4:40:19 PM UTC-5, Rick Waldron wrote: > >> >> On Sunday, December 30, 2012, Tristan Slominski wrote: >> >>> RE: "No one should use --harmony today anyway.." >>> >>> I didn't see block-scoped "let" in es6-shim (pre

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-31 Thread Mark Hahn
Has anyone found problems with weakmap? My application uses it and it works so far for me. It would be a serious problem if I couldn't use it. On Mon, Dec 31, 2012 at 8:39 AM, Rick Waldron wrote: > > > On Monday, December 31, 2012, Domenic Denicola wrote: > >> On Sunday, December 30, 2012 4:40:

Re: [nodejs] convention for publishing modules requiring --harmony?

2012-12-31 Thread Rick Waldron
On Mon, Dec 31, 2012 at 12:43 PM, Mark Hahn wrote: > Has anyone found problems with weakmap? My application uses it and it > works so far for me. It would be a serious problem if I couldn't use it. > > WeakMap is a feature of --harmony that is almost API complete (missing the constructor initial

Re: [nodejs] convention for publishing modules requiring --harmony?

2013-01-01 Thread Tristan Slominski
Apparently the reason "node --harmony --use-strict" works is that v8 enters "extended mode" if both flags are used. from: https://groups.google.com/d/topic/v8-dev/1vmieHKNihs/discussion "This CL introduces a third mode next to the non-strict (henceforth called 'classic mode') and 'strict mode'