Skip to content

Commit

Permalink
added node 0.12 support for static binding generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Plamen5kov committed Jun 28, 2016
1 parent cd80a2a commit bce7251
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ var visitAst = function (data, err) {
}

traverse.default(data.ast, {
enter(path) {

enter: function(path) {
var decoratorConfig = {
logger: logger,
extendDecoratorName: extendDecoratorName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ var es5_visitors = (function () {
* Returns the common extends array generated from visitor
*/
es5Visitor.getCommonExtendInfo = function () {
var res = normalExtendsArr.slice().filter(function (p) {
if(p.startsWith("*")) {
return false;
var res = [];
for(var index in normalExtendsArr) {
if(normalExtendsArr[index][0] !== "*") {
res.push(normalExtendsArr[index]);
}
return p;
});
}

normalExtendsArr = [];
return res;
}
Expand Down

0 comments on commit bce7251

Please sign in to comment.