git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / test / test-79-npm / uglify-js / uglify-js@2.7.5.js

313 bytesRaw
1'use strict';
2
3var ujs = require('uglify-js');
4var code = '40 + 2';
5var ast = ujs.parse(code, {});
6if (ast.body[0].body.operator === '+') {
7 var code2 = 'var b = function () {};';
8 var result = ujs.minify(code2, { fromString: true });
9 if (result.code === 'var b=function(){};') {
10 console.log('ok');
11 }
12}
13

Built with git-ssb-web