From abd94a7f5a50f43c797a11b53549ae48fff667c3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 10 Oct 2016 03:43:44 +0200 Subject: add node_modules to address #4364 --- node_modules/when/es6-shim/Promise.browserify-es6.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 node_modules/when/es6-shim/Promise.browserify-es6.js (limited to 'node_modules/when/es6-shim/Promise.browserify-es6.js') diff --git a/node_modules/when/es6-shim/Promise.browserify-es6.js b/node_modules/when/es6-shim/Promise.browserify-es6.js new file mode 100644 index 000000000..751208fe9 --- /dev/null +++ b/node_modules/when/es6-shim/Promise.browserify-es6.js @@ -0,0 +1,13 @@ +/** @license MIT License (c) copyright 2010-2014 original author or authors */ +/** @author Brian Cavalier */ +/** @author John Hann */ + +/** + * ES6 global Promise shim + */ +var unhandledRejections = require('../lib/decorators/unhandledRejection'); +var PromiseConstructor = unhandledRejections(require('../lib/Promise')); + +module.exports = typeof global != 'undefined' ? (global.Promise = PromiseConstructor) + : typeof self != 'undefined' ? (self.Promise = PromiseConstructor) + : PromiseConstructor; -- cgit v1.2.3