play nice with propmangle

This commit is contained in:
Fábio Santos
2015-08-08 16:01:16 +01:00
parent dc5db9b6ca
commit 7ee8f3512e
3 changed files with 15 additions and 2 deletions

View File

@@ -1180,14 +1180,15 @@ function OutputStream(options) {
output.print_name(def ? def.mangled_name || def.name : self.name);
});
DEFPRINT(AST_ObjectSymbol, function(self, output){
var name = self.mangled_key || self.symbol.name;
var def = self.symbol.definition();
if (def && def.mangled_name) {
output.print(self.symbol.name);
output.print(name);
output.print(':');
output.space();
output.print(def.mangled_name);
} else {
output.print(self.symbol.name);
output.print(name);
}
});
DEFPRINT(AST_Undefined, function(self, output){