* fix mangling collision with keep_fnames fixes #1423 * pass mangle options to figure_out_scope() bring command-line in line with minify()
14 lines
202 B
JavaScript
14 lines
202 B
JavaScript
function f(x) {
|
|
return function() {
|
|
function n(a) {
|
|
return a * a;
|
|
}
|
|
return x(n);
|
|
};
|
|
}
|
|
|
|
function g(op) {
|
|
return op(1) + op(2);
|
|
}
|
|
|
|
console.log(f(g)() == 5); |