Skip to content

Commit bce7251

Browse files
committed
added node 0.12 support for static binding generator
1 parent cd80a2a commit bce7251

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build-artifacts/project-template-gradle/build-tools/android-static-binding-generator/ast-parser/js_parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ var visitAst = function (data, err) {
233233
}
234234

235235
traverse.default(data.ast, {
236-
enter(path) {
237-
236+
enter: function(path) {
237+
238238
var decoratorConfig = {
239239
logger: logger,
240240
extendDecoratorName: extendDecoratorName,

build-artifacts/project-template-gradle/build-tools/android-static-binding-generator/ast-parser/visitors/es5-visitors.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,13 @@ var es5_visitors = (function () {
7575
* Returns the common extends array generated from visitor
7676
*/
7777
es5Visitor.getCommonExtendInfo = function () {
78-
var res = normalExtendsArr.slice().filter(function (p) {
79-
if(p.startsWith("*")) {
80-
return false;
78+
var res = [];
79+
for(var index in normalExtendsArr) {
80+
if(normalExtendsArr[index][0] !== "*") {
81+
res.push(normalExtendsArr[index]);
8182
}
82-
return p;
83-
});
83+
}
84+
8485
normalExtendsArr = [];
8586
return res;
8687
}

0 commit comments

Comments
 (0)