domain.js 517 B

12345678910
  1. var domain = require("domain");
  2. var promisify = require("./_promisify.js");
  3. var bind = function(c, f) { return f && f.bind(c); };
  4. Object.defineProperties(module.exports, {
  5. Domain: { enumerable: true, value: domain.Domain },
  6. //_stack: // skipping
  7. active: { enumerable: true, get: function() { return domain.active; }, set: function(v) { domain.active = v; } },
  8. create: { enumerable: true, value: bind(domain, domain.create) },
  9. createDomain: { enumerable: true, value: bind(domain, domain.createDomain) },
  10. });