mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Merge pull request #862 from zewish/master
Do not replace the native Promise when it is available
This commit is contained in:
commit
a79019519a
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