more fixes:
- added walker for AST_ObjectProperty - handle redefinitions properly (only mangle one symbol, make them all point to a single definition) DynarchLIB seems to run fine after mangling + compressed output.
This commit is contained in:
@@ -707,8 +707,9 @@ function OutputStream(options) {
|
||||
var expr = self.expression;
|
||||
expr.print(output);
|
||||
if (expr instanceof AST_Number) {
|
||||
if (!/[xa-f.]/i.test(output.last()))
|
||||
if (!/[xa-f.]/i.test(output.last())) {
|
||||
output.print(".");
|
||||
}
|
||||
}
|
||||
output.print(".");
|
||||
output.print_name(self.property);
|
||||
@@ -805,7 +806,11 @@ function OutputStream(options) {
|
||||
output.print_name(self.name);
|
||||
});
|
||||
DEFPRINT(AST_SymbolDeclaration, function(self, output){
|
||||
output.print_name(self.mangled_name || self.name);
|
||||
if (self.uniq) {
|
||||
self.uniq.print(output);
|
||||
} else {
|
||||
output.print_name(self.mangled_name || self.name);
|
||||
}
|
||||
});
|
||||
DEFPRINT(AST_SymbolRef, function(self, output){
|
||||
var def = self.symbol;
|
||||
|
||||
Reference in New Issue
Block a user