mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
Do not redefine global Promise when it is available
This commit is contained in:
parent
97c302a401
commit
44ea97c19c
1 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,9 @@
|
|||
'use strict';
|
||||
var Promise = require('es6-promise').Promise;
|
||||
|
||||
var Promise = typeof global.Promise == 'function'
|
||||
? global.Promise
|
||||
: require('es6-promise').Promise;
|
||||
|
||||
var childProcess = require('child_process');
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue