From dbf25a82eee7c0a1391b43919e8294ddbff71b19 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 29 Sep 2014 18:28:51 +1000 Subject: [PATCH] rename iterators to for-of --- lib/6to5/transform.js | 4 ++-- lib/6to5/transformers/{iterators.js => for-of.js} | 0 test/fixtures/{iterators/for-of-let => for-of/let}/actual.js | 0 .../fixtures/{iterators/for-of-let => for-of/let}/expected.js | 0 test/fixtures/{iterators/for-of => for-of/var}/actual.js | 0 test/fixtures/{iterators/for-of => for-of/var}/expected.js | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename lib/6to5/transformers/{iterators.js => for-of.js} (100%) rename test/fixtures/{iterators/for-of-let => for-of/let}/actual.js (100%) rename test/fixtures/{iterators/for-of-let => for-of/let}/expected.js (100%) rename test/fixtures/{iterators/for-of => for-of/var}/actual.js (100%) rename test/fixtures/{iterators/for-of => for-of/var}/expected.js (100%) diff --git a/lib/6to5/transform.js b/lib/6to5/transform.js index 517ef046c7..c5cb44a380 100644 --- a/lib/6to5/transform.js +++ b/lib/6to5/transform.js @@ -107,10 +107,10 @@ transform.transformers = { templateLiterals: require("./transformers/template-literals"), propertyMethodAssignment: require("./transformers/property-method-assignment"), defaultParameters: require("./transformers/default-parameters"), - destructuringAssignment: require("./transformers/destructuring-assignment"), + destructuring: require("./transformers/destructuring"), generators: require("./transformers/generators"), blockBinding: require("./transformers/block-binding"), modules: require("./transformers/modules"), restParameters: require("./transformers/rest-parameters"), - iterators: require("./transformers/iterators") + forOf: require("./transformers/for-of") }; diff --git a/lib/6to5/transformers/iterators.js b/lib/6to5/transformers/for-of.js similarity index 100% rename from lib/6to5/transformers/iterators.js rename to lib/6to5/transformers/for-of.js diff --git a/test/fixtures/iterators/for-of-let/actual.js b/test/fixtures/for-of/let/actual.js similarity index 100% rename from test/fixtures/iterators/for-of-let/actual.js rename to test/fixtures/for-of/let/actual.js diff --git a/test/fixtures/iterators/for-of-let/expected.js b/test/fixtures/for-of/let/expected.js similarity index 100% rename from test/fixtures/iterators/for-of-let/expected.js rename to test/fixtures/for-of/let/expected.js diff --git a/test/fixtures/iterators/for-of/actual.js b/test/fixtures/for-of/var/actual.js similarity index 100% rename from test/fixtures/iterators/for-of/actual.js rename to test/fixtures/for-of/var/actual.js diff --git a/test/fixtures/iterators/for-of/expected.js b/test/fixtures/for-of/var/expected.js similarity index 100% rename from test/fixtures/iterators/for-of/expected.js rename to test/fixtures/for-of/var/expected.js