omit uninteresting block_scope tag

This commit is contained in:
kzc 2018-01-14 00:45:07 -05:00
parent 30395e40da
commit bfb5f85ad3

View File

@ -269,11 +269,9 @@ function run() {
_class: "AST_" + value.TYPE
};
if (value.block_scope) {
result.block_scope = {
variables: value.block_scope.variables,
functions: value.block_scope.functions,
enclosed: value.block_scope.enclosed,
};
result.variables = value.block_scope.variables;
result.functions = value.block_scope.functions;
result.enclosed = value.block_scope.enclosed;
}
value.CTOR.PROPS.forEach(function(prop) {
result[prop] = value[prop];