Skip to content

Conversation

@drydevelopment
Copy link

In order to support Node v12+ fibers needs to be upgraded to v4.

laverdet/node-fibers#409

Mocha and Chai dependencies needed updated as well.

Comment on lines -410 to -420
it('should throw error when not matched defer-await pair', function(done){
sync.fiber(function(){
process.nextTick(sync.defer())
expect(function() { process.nextTick(sync.defer()) }).to.throw(Error)
sync.await()
process.nextTick(sync.defers())
expect(function() { process.nextTick(sync.defers()) }).to.throw(Error)
sync.await()
}, done)
})

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails similarly on Node 8.17.0 as on 12.13.1 and 13.5.0, so I felt it is worth removing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant