aboutsummaryrefslogtreecommitdiff
path: root/tmp/test-node.js
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-08-21 11:38:49 +0300
committerMihai Bazon <mihai@bazon.net>2012-08-21 11:38:49 +0300
commit99456c6156f8a05734a82be97348ace72aa1ee2a (patch)
tree284425053132542fe920af3e7fb98f1365685eb2 /tmp/test-node.js
parent458e251d7ed6e9ac97849237264caa40a40c76b3 (diff)
downloadtracifyjs-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-xtmp/test-node.js2
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);