Skip to content

Commit

Permalink
idlc, refactor: not refer object_base.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Aug 21, 2017
1 parent 731e7de commit 354f580
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/util/gen_code.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ module.exports = function (defs, baseFolder) {
}
},
"object": {
"declare": () => { },
"stub": () => { },
"stub_func": () => { }
"declare": () => {},
"stub": () => {},
"stub_func": () => {}
},
"const": {
"declare": () => { },
"declare": () => {},
"stub": fn => {
var fname = fn.name;
txts.push(" static void s_get_" + fname + "(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& args);");
Expand Down Expand Up @@ -678,7 +678,7 @@ module.exports = function (defs, baseFolder) {
var types = {};

function add_type(type) {
if (type && (type !== cls) &&
if (type && (type !== cls) && (type !== 'object') &&
(type !== def.declare.extend) &&
(!typeMap[type]))
types[type] = true;
Expand Down Expand Up @@ -769,4 +769,4 @@ module.exports = function (defs, baseFolder) {
for (var cls in defs) {
gen_code(cls, defs[cls]);
}
}
}

0 comments on commit 354f580

Please sign in to comment.