From c526a3eb0424e9b24479ca2e2d8237d28512a53c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 8 May 2015 15:51:56 +0100 Subject: [PATCH] move shadow-functions internal transformer to builtin-cleanup category --- .../transformation/transformers/internal/shadow-functions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/babel/transformation/transformers/internal/shadow-functions.js b/src/babel/transformation/transformers/internal/shadow-functions.js index 30925d8a8f..decec95409 100644 --- a/src/babel/transformation/transformers/internal/shadow-functions.js +++ b/src/babel/transformation/transformers/internal/shadow-functions.js @@ -85,6 +85,10 @@ function aliasFunction(getBody, path, scope) { // todo: on all `this` and `arguments`, walk UP the tree instead of // crawling the entire function tree +export var metadata = { + category: "builtin-cleanup" +}; + export var Program = { exit(node, parent, scope) { aliasFunction(function () {