Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
But only in v0.10
  • Loading branch information
Refael Ackermann committed Oct 19, 2013
1 parent 64289f8 commit 95cc330
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,4 +1,4 @@
language: node_js
node_js:
- 0.6
- 0.8
- 0.10
6 changes: 5 additions & 1 deletion test/promise.domain.test.js
Expand Up @@ -2,6 +2,10 @@ var Promise = require('../')
, Domain = require('domain')
, assert = require('assert');

var next = 'function' == typeof setImmediate
? setImmediate
: process.nextTick;

describe("domains", function () {
it("exceptions should not breakout of domain bounderies", function (done) {
var d = Domain.create();
Expand All @@ -20,7 +24,7 @@ describe("domains", function () {
}).end();
});

setImmediate(function () {
next(function () {
p.fulfill();
})
});
Expand Down

0 comments on commit 95cc330

Please sign in to comment.