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 _class: "AST_" + value.TYPE
}; };
if (value.block_scope) { if (value.block_scope) {
result.block_scope = { result.variables = value.block_scope.variables;
variables: value.block_scope.variables, result.functions = value.block_scope.functions;
functions: value.block_scope.functions, result.enclosed = value.block_scope.enclosed;
enclosed: value.block_scope.enclosed,
};
} }
value.CTOR.PROPS.forEach(function(prop) { value.CTOR.PROPS.forEach(function(prop) {
result[prop] = value[prop]; result[prop] = value[prop];