1
0
mirror of https://github.com/actions/setup-python synced 2024-11-30 21:22:28 +08:00
setup-python/node_modules/pn/domain.js

10 lines
517 B
JavaScript
Raw Normal View History

2019-06-27 09:12:00 +08:00
var domain = require("domain");
var promisify = require("./_promisify.js");
var bind = function(c, f) { return f && f.bind(c); };
Object.defineProperties(module.exports, {
Domain: { enumerable: true, value: domain.Domain },
//_stack: // skipping
active: { enumerable: true, get: function() { return domain.active; }, set: function(v) { domain.active = v; } },
create: { enumerable: true, value: bind(domain, domain.create) },
createDomain: { enumerable: true, value: bind(domain, domain.createDomain) },
});