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:
Mihai Bazon
2012-08-21 11:38:49 +03:00
parent 458e251d7e
commit 99456c6156
4 changed files with 64 additions and 29 deletions

View File

@@ -5,8 +5,10 @@
var fs = require("fs");
var vm = require("vm");
var sys = require("util");
var path = require("path");
function load_global(file) {
file = path.resolve(path.dirname(module.filename), file);
try {
var code = fs.readFileSync(file, "utf8");
return vm.runInThisContext(code, file);