Wow, I wanna be evil, and dark side all the way. Can I have cookies? If it's possible to set flags for one particular context and remove them later, it would actually look pretty nice by the way.
gnode is overriding require.extensions['.js'] already, and in theory it can enable flags for some particular script more or less easily. Right? On Thursday, October 31, 2013 7:43:18 PM UTC+4, Timothy J Fontaine wrote: > > Also, if you know you have a module that requires specific flags but don't > know if node has been launched with proper settings you could use something > like https://npmjs.org/package/setflags to set harmony flags at runtime > (this is particularly evil) > > > On Wed, Oct 30, 2013 at 11:08 PM, Nathan Rajlich > <[email protected]<javascript:> > > wrote: > >> Alex, I think what you're describing could definitely be a use case of >> this module. I plan on doing this myself as well in a module or two... Let >> met know if you run into any troubles along the way. >> >> >> On Wed, Oct 30, 2013 at 9:34 PM, Alex Kocharin >> <[email protected]<javascript:> >> > wrote: >> >>> >>> If a certain library is using generators, but is included in node 0.11.x >>> without --harmony flag, do you suggest to use a fallback? What's the >>> performance impact of the fallback? >>> >>> I guess most people don't use generators in libraries because there is >>> not a single version of node that supports it by default, and I'm afraid >>> harmony won't be the default even in 0.12.x. >>> >>> >>> >>> On Thursday, October 31, 2013 7:36:13 AM UTC+4, Nathan Rajlich wrote: >>>> >>>> Hey all, >>>> >>>> Just wanted to chime in with a quick new CLI tool that I whipped up: >>>> gnode: >>>> https://github.com/**TooTallNate/gnode<https://github.com/TooTallNate/gnode> >>>> >>>> gnode (generators⦠nodeā¦) is a wrapper around your node executable that >>>> ensures ES6 Generators are enabled, even on node <= v0.10.x. The fallback >>>> is accomplished with facebook/regenerator, but gist is that there's >>>> absolutely no reason that we can't start publishing modules that depend on >>>> generators to npm right now! >>>> >>>> See the Readme on the repo for some some examples, and please report >>>> any issues on the bug tracker. >>>> >>>> Cheers! >>>> >>> -- >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To post to this group, send email to [email protected]<javascript:> >>> To unsubscribe from this group, send email to >>> [email protected] <javascript:> >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "nodejs" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines >> You received this message because you are subscribed to the Google >> Groups "nodejs" group. >> To post to this group, send email to [email protected]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "nodejs" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
