aboutsummaryrefslogtreecommitdiff
path: root/tools/node.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-06-06 17:50:56 +0800
committerGitHub <noreply@github.com>2018-06-06 17:50:56 +0800
commit9e19e63551907be19c8c6b5b75217d7650504436 (patch)
tree9c545c0e02d16c73a19c96f44b191af4f1eaff0e /tools/node.js
parentbce7ee5f6a28e87e2e68cd2d22b4e4280372d7bb (diff)
downloadtracifyjs-9e19e63551907be19c8c6b5b75217d7650504436.tar.gz
tracifyjs-9e19e63551907be19c8c6b5b75217d7650504436.zip
general clean-ups (#3175)
Diffstat (limited to 'tools/node.js')
-rw-r--r--tools/node.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/node.js b/tools/node.js
index dc270106..2e8f2d5c 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -14,7 +14,7 @@ var FILES = UglifyJS.FILES = [
"../lib/propmangle.js",
"../lib/minify.js",
"./exports.js",
-].map(function(file){
+].map(function(file) {
return require.resolve(file);
});
@@ -33,13 +33,13 @@ function describe_ast() {
var out = OutputStream({ beautify: true });
function doitem(ctor) {
out.print("AST_" + ctor.TYPE);
- var props = ctor.SELF_PROPS.filter(function(prop){
+ var props = ctor.SELF_PROPS.filter(function(prop) {
return !/^\$/.test(prop);
});
if (props.length > 0) {
out.space();
- out.with_parens(function(){
- props.forEach(function(prop, i){
+ out.with_parens(function() {
+ props.forEach(function(prop, i) {
if (i) out.space();
out.print(prop);
});
@@ -51,8 +51,8 @@ function describe_ast() {
}
if (ctor.SUBCLASSES.length > 0) {
out.space();
- out.with_block(function(){
- ctor.SUBCLASSES.forEach(function(ctor, i){
+ out.with_block(function() {
+ ctor.SUBCLASSES.forEach(function(ctor, i) {
out.indent();
doitem(ctor);
out.newline();