move destructuring and parameters.rest transformer to above blockScoping
This commit is contained in:
parent
9624f8287d
commit
f74de3ef55
@ -50,6 +50,11 @@ module.exports = {
|
|||||||
// needs to be before `es6.blockScoping` as default parameters have a TDZ
|
// needs to be before `es6.blockScoping` as default parameters have a TDZ
|
||||||
"es6.parameters.default": require("./es6/parameters.default"),
|
"es6.parameters.default": require("./es6/parameters.default"),
|
||||||
|
|
||||||
|
"es6.parameters.rest": require("./es6/parameters.rest"),
|
||||||
|
|
||||||
|
// needs to be before `es6.blockScoping` as let variables may be produced
|
||||||
|
"es6.destructuring": require("./es6/destructuring"),
|
||||||
|
|
||||||
// needs to be before `_aliasFunction` due to block scopes sometimes being wrapped in a
|
// needs to be before `_aliasFunction` due to block scopes sometimes being wrapped in a
|
||||||
// closure
|
// closure
|
||||||
"es6.blockScoping": require("./es6/block-scoping"),
|
"es6.blockScoping": require("./es6/block-scoping"),
|
||||||
@ -57,10 +62,6 @@ module.exports = {
|
|||||||
// needs to be after `es6.blockScoping` due to needing `letReferences` set on blocks
|
// needs to be after `es6.blockScoping` due to needing `letReferences` set on blocks
|
||||||
"es6.blockScopingTDZ": require("./es6/block-scoping-tdz"),
|
"es6.blockScopingTDZ": require("./es6/block-scoping-tdz"),
|
||||||
|
|
||||||
"es6.parameters.rest": require("./es6/parameters.rest"),
|
|
||||||
|
|
||||||
"es6.destructuring": require("./es6/destructuring"),
|
|
||||||
|
|
||||||
"es6.tailCall": require("./es6/tail-call"),
|
"es6.tailCall": require("./es6/tail-call"),
|
||||||
|
|
||||||
regenerator: require("./other/regenerator"),
|
regenerator: require("./other/regenerator"),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user