Remove Promise hack from turbo-carto adapter

This commit is contained in:
Raul Ochoa 2017-05-22 18:45:24 +02:00
parent 5135b6e14a
commit 8b0964ad7e

View File

@ -4,13 +4,6 @@ var dot = require('dot');
dot.templateSettings.strip = false; dot.templateSettings.strip = false;
var queue = require('queue-async'); var queue = require('queue-async');
var PSQL = require('cartodb-psql'); var PSQL = require('cartodb-psql');
/**
* cartodb-psql creates `global.Promise` as an empty constructor.
* However, `turbo-carto` relies on a polyfil that fails to create the polyfil
* as it finds `global.Promise` but it doesn't find `Promise.resolve`.
*/
global.Promise = global.Promise || function() {};
global.Promise.resolve = global.Promise.resolve || function() {};
var turboCarto = require('turbo-carto'); var turboCarto = require('turbo-carto');
var SubstitutionTokens = require('../../../utils/substitution-tokens'); var SubstitutionTokens = require('../../../utils/substitution-tokens');