Update to non-global Fiber object #72

Closed
laverdet opened this Issue May 10, 2012 · 1 comment

2 participants

@laverdet
Owner

@0ctave, @olegp, @lm1, @chriso, @scriby, @bjouhier, @goodeggs, @gschmidt: see below

Hey everyone I made a change in node-fibers 0.6.7 to make require('fibers') return the Fiber object instead of nothing. In a future version of node-fibers I want to remove the global pollution that require('fibers') does. Could you guys update your libraries to do var Fiber = require('fibers'); and replace calls to yield() with Fiber.yield(). Fiber remains unchanged otherwise.

Thanks!

@scriby
@laverdet laverdet added a commit that closed this issue Jan 6, 2013
@laverdet Remove global `Fiber` and `yield`
Fixes gh-72
f412b09
@laverdet laverdet closed this in f412b09 Jan 6, 2013
@scriby scriby pushed a commit to scriby/asyncblock-generators that referenced this issue Jan 3, 2016
Chris Scribner 2.0.8
* Update fibers to version 0.6.7 (windows support)
* (Note that something with maintaining line numbers in source transformation looks off on Windows)
* Get rid of use of Fibers global variable per laverdet/node-fibers#72
b911c09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment