diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-08-21 11:38:49 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-08-21 11:38:49 +0300 |
commit | 99456c6156f8a05734a82be97348ace72aa1ee2a (patch) | |
tree | 284425053132542fe920af3e7fb98f1365685eb2 /tmp/test-node.js | |
parent | 458e251d7ed6e9ac97849237264caa40a40c76b3 (diff) | |
download | tracifyjs-99456c6156f8a05734a82be97348ace72aa1ee2a.tar.gz tracifyjs-99456c6156f8a05734a82be97348ace72aa1ee2a.zip |
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.
Diffstat (limited to 'tmp/test-node.js')
-rwxr-xr-x | tmp/test-node.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tmp/test-node.js b/tmp/test-node.js index a80d0935..b78fccbc 100755 --- a/tmp/test-node.js +++ b/tmp/test-node.js @@ -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); |