add checkNode to block scoped functions transformer
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
var t = require("../../../types");
|
||||
|
||||
exports.BlockStatement = function (node, parent) {
|
||||
exports.BlockStatement = function (node, parent, scope, file) {
|
||||
if ((t.isFunction(parent) && parent.body === node) || t.isExportDeclaration(parent)) {
|
||||
return;
|
||||
}
|
||||
@@ -22,5 +22,7 @@ exports.BlockStatement = function (node, parent) {
|
||||
func.id = null;
|
||||
|
||||
node.body[i] = declar;
|
||||
|
||||
file.checkNode(declar);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user