From 8b0964ad7ecffa813f7efaa15d981cf491ac1f82 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 22 May 2017 18:45:24 +0200 Subject: [PATCH] Remove Promise hack from turbo-carto adapter --- .../models/mapconfig/adapter/turbo-carto-adapter.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js index 46efd100..b9487095 100644 --- a/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js +++ b/lib/cartodb/models/mapconfig/adapter/turbo-carto-adapter.js @@ -4,13 +4,6 @@ var dot = require('dot'); dot.templateSettings.strip = false; var queue = require('queue-async'); 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 SubstitutionTokens = require('../../../utils/substitution-tokens');