Merge a21be26f4e into 9916d0e547
This commit is contained in:
commit
b248b45696
|
|
@ -21,5 +21,6 @@
|
||||||
"bin": {
|
"bin": {
|
||||||
"uglifyjs" : "bin/uglifyjs"
|
"uglifyjs" : "bin/uglifyjs"
|
||||||
},
|
},
|
||||||
|
"main": "./tools/node",
|
||||||
"scripts": {"test": "node test/run-tests.js"}
|
"scripts": {"test": "node test/run-tests.js"}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
#! /usr/bin/env node
|
#! /usr/bin/env node
|
||||||
|
|
||||||
var U = require("../tools/node");
|
// Test the two requires
|
||||||
|
["../tools/node", "../"].forEach(function(requireFile) {
|
||||||
|
var U = require(requireFile);
|
||||||
var path = require("path");
|
var path = require("path");
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var assert = require("assert");
|
var assert = require("assert");
|
||||||
|
|
@ -168,3 +170,4 @@ function evaluate(code) {
|
||||||
code = make_code(code);
|
code = make_code(code);
|
||||||
return new Function("return(" + code + ")")();
|
return new Function("return(" + code + ")")();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user