Skip to content

Commit 354f580

Browse files
committed
idlc, refactor: not refer object_base.
1 parent 731e7de commit 354f580

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/util/gen_code.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,12 @@ module.exports = function (defs, baseFolder) {
300300
}
301301
},
302302
"object": {
303-
"declare": () => { },
304-
"stub": () => { },
305-
"stub_func": () => { }
303+
"declare": () => {},
304+
"stub": () => {},
305+
"stub_func": () => {}
306306
},
307307
"const": {
308-
"declare": () => { },
308+
"declare": () => {},
309309
"stub": fn => {
310310
var fname = fn.name;
311311
txts.push(" static void s_get_" + fname + "(v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& args);");
@@ -678,7 +678,7 @@ module.exports = function (defs, baseFolder) {
678678
var types = {};
679679

680680
function add_type(type) {
681-
if (type && (type !== cls) &&
681+
if (type && (type !== cls) && (type !== 'object') &&
682682
(type !== def.declare.extend) &&
683683
(!typeMap[type]))
684684
types[type] = true;
@@ -769,4 +769,4 @@ module.exports = function (defs, baseFolder) {
769769
for (var cls in defs) {
770770
gen_code(cls, defs[cls]);
771771
}
772-
}
772+
}

0 commit comments

Comments
 (0)