From a7ad7654384bee5076306718167b9ab7b54d9948 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 17 Jul 2015 11:09:20 +0100 Subject: [PATCH] remove weird promise compat method - fixes #2024 --- packages/babel/src/transformation/file/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/babel/src/transformation/file/index.js b/packages/babel/src/transformation/file/index.js index 6505704cb3..d7f4f4147a 100644 --- a/packages/babel/src/transformation/file/index.js +++ b/packages/babel/src/transformation/file/index.js @@ -676,10 +676,6 @@ export default class File { map: map }; - result.then = function (callback) { - callback(result); - }; - if (this.opts.code) { result.code = code; }