This commit is contained in:
yimi 2017-09-18 08:53:24 +00:00
parent b4911cb81b
commit caf102463a

View File

@ -232,9 +232,12 @@ function run() {
var result = {
_class: "AST_" + value.TYPE
};
value.CTOR.PROPS.forEach(function(prop) {
result[prop] = value[prop];
});
var ctor = value.CTOR;
do {
ctor.SELF_PROPS.forEach(function(prop) {
result[prop] = value[prop];
});
} while (ctor = ctor.BASE);
return result;
}
return value;