ajv/spec/promise.js

12 lines
242 B
JavaScript
Raw Normal View History

2016-07-28 02:50:30 +03:00
'use strict';
2016-02-04 01:14:14 +03:00
var g = typeof global == 'object' ? global :
typeof window == 'object' ? window : this;
2016-10-04 23:16:18 +03:00
if (!g.Promise) {
g.Promise = require('' + 'bluebird');
g.Promise.config({ warnings: false });
}
2016-02-04 01:14:14 +03:00
2016-10-04 23:16:18 +03:00
module.exports = g.Promise;