1 2 3 4 5 6 7 8 9 10 11 | 1 1 27 27 24 24 | var t = require("../../types"); exports.ForInStatement = exports.ForOfStatement = function (node, parent, file) { var left = node.left; if (t.isVariableDeclaration(left)) { var declar = left.declarations[0]; if (declar.init) throw file.errorWithNode(declar, "No assignments allowed in for-in/of head"); } }; |